gesior / open-tibia-library

Library to manipulate files used by OTS and OTClient. Written in TypeScript.
41 stars 34 forks source link

Possibility to extract item in .gif format #18

Closed rokamdev closed 3 months ago

rokamdev commented 3 months ago

It would be interesting to have the option of extracting items in .gif format, as the vast majority of new items have effects

gesior commented 3 months ago

It would be interesting to have the option of extracting items in .gif format, as the vast majority of new items have effects

I could not find any JS library able to process multiple PNG images into GIF animation. I made generator ( https://item-images.ots.me/generator-animated-items/ ) that exports all animation frames into 1 PNG and then you have to use this PHP tool: https://github.com/gesior/open-tibia-library/tree/master/tools/item-image-frames-to-animated-gif-converter to merge these animation frames into .gif or animated .png (APNG - animated PNG).