weibeu / image-processor

A web image processing service API server made using Pillow and Flask.
MIT License
1 stars 4 forks source link

Optimize the output GIF size. #1

Open weibeu opened 4 years ago

weibeu commented 4 years ago

https://github.com/thec0sm0s/image-processor/blob/513bf2d3d8e96db4893692e3ebfd415fb5e0f0bc/app/api_resources/discord/welcome_banner.py#L104-L110

This is the most obvious way to generate GIFs using Python PIL. However when the input GIF consists of more number of frames or are just of higher resolution, the resulting processed GIF size goes around of size ranging 10-15MB. Maybe use some kind of compression or opimization algorithms for examples drop consecutive frames which look similar or any possible way to optimize the resulting GIF.

jyoungiv commented 4 years ago

Hello! I would like to contribute, may I be assigned to this issue?

weibeu commented 4 years ago

Thanks for considering this! I would love to.

weibeu commented 4 years ago

You may join Discord community for follow up on this or normal fest discussions, etc