canvasResize
canvasResize copied to clipboard
Certain GIFs are cropped or stretched oddly
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:
This image is cropped to the top-left quadrant:
And this image has the bottom half cropped off, then stretched vertically to fill the space:
+1 confirming this bug, some pngs are getting cropped, attaching one:
Happens when you have transparent edges.
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.