Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain GIFs are cropped or stretched oddly #11

Open
jerryorr opened this issue May 14, 2013 · 3 comments
Open

Certain GIFs are cropped or stretched oddly #11

jerryorr opened this issue May 14, 2013 · 3 comments

Comments

@jerryorr
Copy link

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

@lorenzo-dd
Copy link

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

af-afghan-wireless

@giladMS
Copy link

giladMS commented Sep 8, 2014

Happens when you have transparent edges.

@Rob-ot
Copy link

Rob-ot commented Sep 9, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants