Animated GIFs are notorious for their large file size--700kb is not uncommon for GIFs are narrow as 350px. Therefore, a problem exists when a user uploads an animated GIF into an image field that is styled with retina_images.
Because the module will double the preset width, it can make some animated GIFs upwards of 20MB, the creation of which cripples the server and drags down the pageload. While a user can disable upscaling for presets that will encounter animated GIFs, that's an undesirable solution, as it negatively impacts non-GIF images (and still upscales the GIFs to the original preset size).
Forthcoming is a patch that introduces a second Image Style setting that allows site builders "ignore" upscaling animated GIFs.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | retina_images-animated-gif-2113739-1.patch | 6.62 KB | kmonty |
Comments
Comment #1
kmontyPlease note: in order to test this, you must use the ImageMagick module.
Comment #2
mikey_p commentedI'll take a look at this, although for the most part I would recommend limiting retina fields to non-GIF images and fields for GIFs to not use retina image effects.
Comment #3
mikey_p commentedI took a quick look at the patch, and I don't love the idea of overriding both retina scaling and upscaling, since this module is only responsible for the retina scaling.
Comment #4
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.