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

Sorl-thumbnail generates black lines and undesired crops #488

Open
Vilial opened this issue Mar 19, 2017 · 2 comments
Open

Sorl-thumbnail generates black lines and undesired crops #488

Vilial opened this issue Mar 19, 2017 · 2 comments

Comments

@Vilial
Copy link

Vilial commented Mar 19, 2017

I'm using Sorl Thumbnail 12.4a1, Pillow 4.0.0 in a django project

It works fine for most images but for some of them I run into unexpected behaviour.

The original image is portrait jpg 765x1110

After running this code: get_thumbnail('/media/ryzsUIKZVUc.jpg', '464', upscale=False)

I receive a 464x320 image with black background on it's left and right and cropped on top and bottom

this is the original: https://www.dropbox.com/s/ia7906ec19xjhro/ryzsUIKZVUc.jpg?dl=0

and this is the result: https://www.dropbox.com/s/adgut5zkw4xln6e/62b2439654a00312defafddb862eda9b.jpg?dl=0

@Vilial
Copy link
Author

Vilial commented Apr 1, 2017

Tried the latest version with a fix from here:
#233
but still same result

Also tried switching to wand_engine from pil_engine but also same result

@dtougas
Copy link

dtougas commented May 5, 2017

I was encountering similar problems, I did some digging and found a couple bugs related to orientation, and was able to temporarily fix it by creating my own engine. See my issue #495 for details on how I fixed it.

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

2 participants