• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OpenTibia Items and outfits images generator for website 0.1.1

Gesior.pl

Mega Noob&LOL 2012
Senator
Joined
Sep 18, 2007
Messages
2,955
Solutions
98
Reaction score
3,351
Location
Poland
GitHub
gesior
Open Tibia Library 0.1.1 - based on OTClient, TFS and some other dat/spr/otb editing tools - written in TypeScript.

Changes:
  • added generator of all item animation frames to PNG - as one wide image
  • - stackable items 'stacks' are treated as animation frames
  • added PHP converter to change PNG with few animation frames into animated GIF
  • - it also converts normal item images from PNG to GIF (not animated)
  • added checkbox to enable 'extended sprites' (65k+) for old clients version (OTClient can load it)
  • refactored images generators code

ITEM IMAGES GENERATOR

On item images page you can choose, if you want all items or only pickable:
Item Image Generator - OpenTibiaLibrary (https://item-images.ots.me/generator/)


ANIMATED ITEM IMAGES GENERATOR - NEW!

On item images page you can choose, if you want all items or only pickable:
Item Image Frames Generator - OpenTibiaLibrary (https://item-images.ots.me/generator-animated-items/)

It generates all animation frames as one wide PNG images with number of frames in name of file.
You must convert it into animated GIFs using script (command line and website versions - your own PC/host, no ZIP size limits):
gesior/open-tibia-library (https://github.com/gesior/open-tibia-library/tree/master/tools/item-image-frames-to-animated-gif-converter)
or by using official host (can convert up to 20 MB ZIP at once - enought for 'only pickable' items):
PNG to GIF converter (https://item-images.ots.me/png-to-gif-converter/)


OUTFIT IMAGES GENERATOR

On outfit images page you can choose, if you want to load idle animation (for outfits that support it):
Outfit Image Generator - OpenTibiaLibrary (https://outfit-images.ots.me/generator/)

To host outfit images you need PHP files that will generate colors/addons/mounts on request:
gesior/open-tibia-library (https://github.com/gesior/open-tibia-library/tree/master/tools/colored-outfit-images-generator)


You can also download it all and run offline on your PC:
gesior/open-tibia-library (https://github.com/gesior/open-tibia-library/releases/tag/0.1.1)
 

Attachments

  • open-tibia-library-0.1.1-dist.zip
    555.5 KB · Views: 103 · VirusTotal
Last edited:
when i try to convert from png to gif i get this message. what can i do?
Lua:
Started converter - it may take few minutes to generate GIFs!
items / is not PNG
 
when i try to convert from png to gif i get this message. what can i do?
Lua:
Started converter - it may take few minutes to generate GIFs!
items / is not PNG
It should work anyway. It's just report that file/folder in .zip archive is not '.png'.
It probably reports that it found folder 'items/' and this is not '.png'. It shows notification in console and skips file, so it should generate GIF images anyway.
 
after the message is displayed, nothing happens afterwards
 
Last edited:
@Gesior.pl Those are really helpful, do you think you could make one for monsters images? including walking animations.
 
@Gesior.pl Those are really helpful, do you think you could make one for monsters images? including walking animations.
Monster images = outfit images
Example (demon boss - outfit id 12 - with custom colors):
animoutfit.php


Do not pass 'addons' argument when you generate monster outfit. Generator will return black image, when it can't load given addon.
 
Hello Gesior, I don't know how to speak English, so I'm using the Google translator, trying to download images of the outfits with my SPR / DAT extended and didn't download, I always gave an error, when I tested them without being Extended, I'm only communicating to see if there is anything wrong, thank you and success, thanks for this site, I bet you are saving the lives of many people who have derived servers, success again!

extendido.png
notextended.png
 
@Gesior.pl Thank you!

Unfortunately I got the same problem:

Started converter - it may take few minutes to generate GIFs!
items/ is not PNG

And after that nothing happens.
Post automatically merged:

@Gesior.pl Thank you!

Unfortunately I got the same problem:

Started converter - it may take few minutes to generate GIFs!
items/ is not PNG

And after that nothing happens.


Fixed it.

First: Generate items from: Item Image Generator - OpenTibiaLibrary (https://item-images.ots.me/generator/)

After that, I did make a NEW(items) folder on desktop (move the items I needed in here). and make this to a NEW zip folder (Items.zip).
--> Make sure that you don't copy all your items at once, this will give the error!

Then upload and it works!



Thanks @Gesior.pl
 
Last edited:
Back
Top