Has anyone seen modules that provide image effects for post-generation compression?

I'm thinking things like running the image through a tool like optipng, or similar.

2 Answers 2


For Drupal 7, the best thing I've seen/used for this is ImageAPIOptimize.

To use it properly you can either use an external toolkit like Yahoo SmushIT! or different options on your server like optipng as you mention above, among others. See screenshot for partial config screen. I've run tests with GD, ImageMagick and this module and it produces the best results (in my testing).

Config screen from admin/config/media/image-toolkit:

enter image description here


Try reSmush.it image style optimizer. It's implemented as an image style effect. It has no dependency modules or libraries, and no subscription. See https://www.drupal.org/project/resmushit

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.