When resizing a gif image the animation brokes. And the result image loses the animation

Comments

jpsolero created an issue. See original summary.

jpsolero’s picture

Issue summary: View changes
jpsolero’s picture

Status: Needs work » Needs review
StatusFileSize
new2.67 KB

Fixed with this patch

bceyssens’s picture

Priority: Major » Normal
StatusFileSize
new4.14 KB

@jpsolero thank you for your patch! I reused your code and moved some lines around to have the GIF logic to be in a seperate helper function (_imagick_process_frames). This way we can finish the other effects with less impact. At the moment Crop, Resize and Desaturate shoud work.

Let me know what you think of this approach.

  • bceyssens authored c9ffbcf on 8.x-1.x
    Issue #2764091 by bceyssens: Gif images broken after rescale or crop
    

  • bceyssens authored b3fc551 on 7.x-1.x
    Issue #2764091 by jpsolero, bceyssens: Gif images broken after rescale...
bceyssens’s picture

Status: Needs review » Fixed

I ported and completed the work for the D8 version. For D7 I just committed the Crop, Resize and Desaturate effects. If other effects are desired, feel free to write a patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.