<p>It seems that suddenly my image transforms are breaking gif animations. Weirdly, things were working fine for a couple of weeks and only recently I've been unable to upload new animated gifs. Here's an example of what I'm talking about:</p>

<p><a href="https://www.dropbox.com/s/8k2mx3lysjczi1g/Screenshot%202015-11-20%2014.38.11.png?dl=0" rel="nofollow">https://www.dropbox.com/s/8k2mx3lysjczi1g/Screenshot%202015-11-20%2014.38.11.png?dl=0</a></p>

<p>You can see that when the gif is transformed, the frames are overlapping and resized differently from frame to frame. I'm not sure what caused this (perhaps a craft update?), but after hours of research I'm wondering if imagick needs a +repage when it reconstructs the animation after the transform... this problem seems related to canvas size... maybe? But I can't find where Craft is sending the command to ImageMagick, so can't experiment w/ the animation settings. </p>

<p>Another weird quirk of this bug is if I have <code>'generateTransformsBeforePageLoad' =&gt; true,</code> set in my general config file, the page fails to load beyond the gif asset that's causing problems w/ the transform. </p>

<p>Anyone know what's going on here? I'm at a total loss...</p>

CC BY-SA 3.0
2015-11-20T23:30:23.673Z
Does it happen with all animated GIFs or just that one?  Can you send original source for the one in your screenshot over to support@craftcms.com?
Brad Bell
CC BY-SA 3.0
2015-11-23T15:27:02.593Z
It happens for any gif animation I've tried to upload in the last couple of weeks. There are a few on the site that were uploaded prior to this bug which are still working fine. I'll send the files & source over to support now. Thanks!
Kyle Sheehan
<imagick>
ImageMagick gif transform breaking
# ImageMagick gif transform breaking

(Asked by: username_0 on 2015-11-20)

It seems that suddenly my image transforms are breaking gif animations. Weirdly, things were working fine for a couple of weeks and only recently I've been unable to upload new animated gifs. Here's an example of what I'm talking about:

<https://www.dropbox.com/s/8k2mx3lysjczi1g/Screenshot%202015-11-20%2014.38.11.png?dl=0>

You can see that when the gif is transformed, the frames are overlapping and resized differently from frame to frame. I'm not sure what caused this (perhaps a craft update?), but after hours of research I'm wondering if imagick needs a +repage when it reconstructs the animation after the transform... this problem seems related to canvas size... maybe? But I can't find where Craft is sending the command to ImageMagick, so can't experiment w/ the animation settings.

Another weird quirk of this bug is if I have `'generateTransformsBeforePageLoad' => true,` set in my general config file, the page fails to load beyond the gif asset that's causing problems w/ the transform.

Anyone know what's going on here? I'm at a total loss...

**Tags:** imagick

> **Comments:**
> **username_1**: Does it happen with all animated GIFs or just that one?  Can you send original source for the one in your screenshot over to support@craftcms.com?  
> **username_0**: It happens for any gif animation I've tried to upload in the last couple of weeks. There are a few on the site that were uploaded prior to this bug which are still working fine. I'll send the files & source over to support now. Thanks!  

---

## 0 answers

