canvasResize icon indicating copy to clipboard operation
canvasResize copied to clipboard

Certain GIFs are cropped or stretched oddly

Open jerryorr opened this issue 11 years ago • 3 comments

I'm not sure exactly what conditions cause this, but certain GIFs are cropped or stretched oddly. You can see the behavior using https://gokercebeci.com/dev/canvasresize

This image is handled correctly: sunflower_as_gif_websafe

This image is cropped to the top-left quadrant: sad_face_1024

And this image has the bottom half cropped off, then stretched vertically to fill the space: sad_face_240

jerryorr avatar May 14 '13 12:05 jerryorr

+1 confirming this bug, some pngs are getting cropped, attaching one:

af-afghan-wireless

lorenzo-dd avatar May 27 '14 10:05 lorenzo-dd

Happens when you have transparent edges.

giladMS avatar Sep 08 '14 08:09 giladMS

Same issue here. It looks like detectVerticalSquash is returning the wrong value since it's checking transparency to... I don't really know what it does. I'm not really sure how to fix this.

Rob-ot avatar Sep 09 '15 19:09 Rob-ot