#81596Resizing animated gif
Description
when we uploading animated images in DCE
<f:image src="animated gif"></f:image> it shows animation
<f:image src="animated gif" width="100c" height="100c"></f:image> 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
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 7
-
Mona Muzaffar commented and changed category status
NewNeeds Feedback 06/19/17, 09:59 -
Naberd Zendi commented 07/07/17, 14:32
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.
-
Riccardo De Contardi commented 07/08/17, 18:19
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 )
-
Susanne Moog changed category 10/26/17, 15:50
-
Riccardo De Contardi changed Related to #51049 10/27/17, 17:21
-
Alexander Opitz commented and changed status
Needs FeedbackClosed 03/09/18, 11:26Resizing 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.
-
Gabriel Kaufmann TYPOworx GmbH | NewMedia commented 01/05/21, 14:32
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
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.