When resizing this image:
I get this:
Note that I didn't specify it to be cropped, just smaller with the same ratio.
I noticed that merely saving the file using this code:
$image = new \Phalcon\Image\Adapter\Imagick($filePath);
$image->save($filePath);
Produces this exception:
images are not the same size /var/www/storage/media/397.gif @ error/layer.c/OptimizeLayerFrames/1026
Only when I get this exception, the resize is screwed up.
This happens not to all animated gifs, but maybe 50% of the ones I've tested.