You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drupal/Backdrop does not handle animated gifs well. This is mainly to the fact that when any image style is applied to animated gifs, they are turned into static gifs.
This issue here is in order to discuss if there is something we can do about this problem, and whether it needs to be handled in core or leave it for contrib.
There are a few D7/8 modules that try to deal with this in different ways:
When enabled, this module will skip any image effect for animated GIFs for all styles. This will prevent animated GIFs to be turned into static images, but of course won't apply any style. If possible, you should use ImageMagick with this patch.
This module allows you to use animated GIFs on your site.
If the mime-type of the file is image/gif, the image formatter will ignore the Image styles and renders the original GIF.
No extra config needed, just enable the module!
Use this with caution! No image-styles are applied, so the image dimensions will not be changed and can break your styling!
This module supports only "resize" and "scale". However, "resize" is quite useless for animated GIFs. The actions "crop" and "scale and crop" will both do resize only since the used lib does not support crop.
Caveats: It can happen that the generated image does not appear for the first time. Just reload the page if this happens.
Imagecraft is a reliable and extensible PHP image manipulation library. It can edit and compose images in multiple layers and supports watermark, resize and text. Furthermore, it keeps GIF animation, optimizes memory usage, catches memory exhausted error, and gives an user-friendly/translated feedback.
Imagecraft is intended to be an image abstraction & manipulation layer, which offers a PDO-like API. It currently supports GD extension, and will support ImageMagick in version 2.0. If you have any suggestions, comments or feedback, let me know. Thanks.
Drupal/Backdrop does not handle animated gifs well. This is mainly to the fact that when any image style is applied to animated gifs, they are turned into static gifs.
This issue here is in order to discuss if there is something we can do about this problem, and whether it needs to be handled in core or leave it for contrib.
There are a few D7/8 modules that try to deal with this in different ways:
Animated GIF Ignore (sandbox)
https://www.drupal.org/project/animated_gif (D8-only)
https://www.drupal.org/project/animgif_support (D7)
ImageAPI issue: https://www.drupal.org/node/1115658
ImageMagick issue: https://www.drupal.org/project/imagemagick/issues/1802534
https://github.com/coldume/imagecraft
Other resources online on the matter:
https://stackoverflow.com/questions/718491/resize-animated-gif-file-without-destroying-animation
https://bkosborne.com/blog/preventing-drupal-8-applying-image-styles-gifs-preserve-animation
The text was updated successfully, but these errors were encountered: