mattdesl / gifenc

fast GIF encoding
MIT License
301 stars 20 forks source link

Allow specifying X and Y position of frame #16

Open sponge opened 11 months ago

sponge commented 11 months ago

Hello!

Noticed that the X and Y position of the frame was hardcoded to 0 in issue #11 and needed it for a gif generator to really get file sizes down, so I went ahead and added it to the options object and plumbed it through to encodeImageDescriptor. Works for what I needed but didn't test it super thoroughly!

Thanks for creating the library otherwise, our dumb joke Discord bot has a lot of plugins that generate animated GIFs and gifenc was consistently the best library for us to get generation times down, and also optimize file sizes.

otizis commented 1 month ago

useful, thanks very much!