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

Images with transparency at bottom are not fully displayed #84

Open
cschwaderer opened this issue Aug 22, 2016 · 4 comments
Open

Images with transparency at bottom are not fully displayed #84

cschwaderer opened this issue Aug 22, 2016 · 4 comments

Comments

@cschwaderer
Copy link

Take the attached example picture (being the google logo made square by adding transparency at top and bottom) and try to load it into the cropper directive.

Well, the directive will crop it, but not the way intended. It will NOT fully display the image, but crop the transparency at the bottom completely (will preserving that on top) and cropping something from the right (about everything starting at the "l" of "Google").

google_transp

@cschwaderer
Copy link
Author

See screenshot:

screenshot_google_transp

@prestomation
Copy link

I have the same issue.

I have a jist showing that the cropper seems to have a bug.
This gist will take an image, and resize and center it into a square canvas.
It will output this canvas to a standalone canvas, which looks correct, and also output it to the cropper, which only shows the upper left portion of the image

http://jsbin.com/jurapesema/5/edit?output

I did not make the transparency connection until reading your post. If the image does not have transparency then there is no issue.(but transparency is a requirement I have as well)

@prestomation
Copy link

I've worked around with it well enough for my purposes by setting the transparency to 0.01, but this is not the best case scenario.

@Krishna-Agrawal
Copy link

Hi @prestomation,
could you please explain who you resolved transparency problem using opacity 0.01 ?

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

3 participants