Bug #81596
closedResizing animated gif
0%
Description
when we uploading animated images in DCE
<f:image src="animated gif" /> it shows animation
<f:image src="animated gif" width="100c" height="100c" /> gives us resized image but it's without animation.
so it seem any resizing of animated gif gives us a static file
guess it misses -coalesce flag while resizing
Updated by Mona Muzaffar over 7 years ago
- Category changed from Fluid to Image Cropping
- Status changed from New to Needs Feedback
I am not too sure if it is or was possible to resize gifs with fluid.
Once you resize it, the gif gets saved as a newly scaled image in the '_processed' folder and thus looses it's animation.
So imho this is more of a feature request than a bug.
Updated by Naberd Zendi over 7 years ago
Mona Muzaffar wrote:
I am not too sure if it is or was possible to resize gifs with fluid.
Once you resize it, the gif gets saved as a newly scaled image in the '_processed' folder and thus looses it's animation.So imho this is more of a feature request than a bug.
not sure if it uses gd lib or similar to resize then it just needs flag. otherwise it is indeed a request to a future.
Updated by Riccardo De Contardi over 7 years ago
as far as I know it is always difficult to resize an animated gif, you could end up with an heavier file or visual artifacts (see a little discussion here: https://stackoverflow.com/questions/12293832/problems-when-resizing-cinemagraphs-animated-gifs )
Updated by Susanne Moog about 7 years ago
- Category changed from Image Cropping to Image Generation / GIFBUILDER
Updated by Riccardo De Contardi about 7 years ago
- Related to Bug #51049: Image rendering for animated GIFS does not work added
Updated by Alexander Opitz over 6 years ago
- Status changed from Needs Feedback to Closed
Resizing of animations can't be handled correctly by IM/GM as it is problematic by design.
So I'm closing this issue, as we can't do much here.
Updated by Gabriel Kaufmann / Typoworx NewMedia almost 4 years ago
I know there are most times lot better options than animated Gif's, but sometimes one can't get rid of them either by time or customer-budget.
I found a solution in optimizing animated gif's on linux CLI and so far I've read the article Imagick should be able to do it (now in the meantime?) as well:
https://superuser.com/questions/1107200/optimize-animated-gif-size-in-command-line
This works like a charm reducing a horrible 4 megabyte Gif animation to only a fraction of the original-size (output-size was 1.6M in my case by combining resize & optimize).
$> gifsicle -i anim.gif --optimize=3 --resize 400x400 -o anim-opt.gif