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.

Comments

kmonty’s picture

Status: Active » Needs review
StatusFileSize
new6.62 KB

Please note: in order to test this, you must use the ImageMagick module.

mikey_p’s picture

Issue summary: View changes

I'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.

mikey_p’s picture

I 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.

astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 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.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.