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

OverflowError - Python int too large to convert to C long #506

Open
fabiocaccamo opened this issue Jul 14, 2017 · 0 comments
Open

OverflowError - Python int too large to convert to C long #506

fabiocaccamo opened this issue Jul 14, 2017 · 0 comments

Comments

@fabiocaccamo
Copy link

Libs:

Pillow==4.2.1
sorl-thumbnail==12.3

Settings:

THUMBNAIL_UPSCALE = True
THUMBNAIL_PROGRESSIVE = False
THUMBNAIL_COLORSPACE = None
THUMBNAIL_PRESERVE_FORMAT = True

Template code:

{% thumbnail product.image "700x700" as product_image_thumbnail %}
<img src="{{ product_image_thumbnail.url }}" width="{{ product_image_thumbnail.width }}" height="{{ product_image_thumbnail.height }}">
{% endthumbnail %}

The processed file size is 24mb, and probably it's a corrupted image, anyway I think this error should be handled to prevent a server error 500. You can download the processed file from here for testing.

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

1 participant