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

Image not being compressed/Image size too large #457

Open
panosl opened this issue Jun 27, 2016 · 0 comments
Open

Image not being compressed/Image size too large #457

panosl opened this issue Jun 27, 2016 · 0 comments

Comments

@panosl
Copy link

panosl commented Jun 27, 2016

Trying to make a thumbnail out of this image:

http://www.menufesto.gr/media/attachments/marketplace_store/86/kei.jpg

which is 644KB (978x978px).

What sorl outputs is this:

http://www.menufesto.gr/media/cache/52/98/52989b5eeb5c08d0cebe13e6449f4118.jpg

which is ~560KB (150x92px).

Here's the source that handles it:

{% thumbnail store_attachments.0.attachment_file "150x92" crop="center" as thumb %}
    <img src="{{ thumb.url }}" width="150" height="92" />
{% empty %}
    <img class="empty" src="/static/img/empty.png" />
    <span class="button_text">{{ store.name|title }}</span>
{% endthumbnail %}

and the settings.py:

        THUMBNAIL_DEBUG = False
        THUMBNAIL_QUALITY = 85

I tried cropping and resizing it manually with GIMP and the resulting image is 7KB. What's going on here?

(GIMP output)
kei

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