Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement Max Bytes Filter #275
In some cases I needed to get image with size less than specified (e.g to pass some custom RSS feeds specifications).
This filter automatically degrades the quality of the image until the image is under the specified amount of bytes.
Warning: this filter processes image multiple times to achieve specified image size
Thanks for your contribution!
Unfortunately, your solution is not optimal and needs a rework: