Project

General

Profile

Actions

Bug #81596

closed

Resizing animated gif

Added by Naberd Zendi over 7 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2017-06-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #51049: Image rendering for animated GIFS does not workClosed2013-08-13

Actions
Actions #2

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.

Actions #3

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.

Actions #4

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 )

Actions #5

Updated by Susanne Moog about 7 years ago

  • Category changed from Image Cropping to Image Generation / GIFBUILDER
Actions #6

Updated by Riccardo De Contardi about 7 years ago

  • Related to Bug #51049: Image rendering for animated GIFS does not work added
Actions #7

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.

Actions #8

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

Actions

Also available in: Atom PDF