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

Thumbnail filename #52

Closed
rokj opened this issue Oct 17, 2010 · 3 comments
Closed

Thumbnail filename #52

rokj opened this issue Oct 17, 2010 · 3 comments

Comments

@rokj
Copy link

rokj commented Oct 17, 2010

Hi.

I create image with something like this:
{% thumbnail author.images.all.0.image 100x50 %}

... and I get:
/static/images/authors/thumbs/QQbo72SE.jpg.100x50_q85.jpg

Shouldn't I get something like:
/static/images/players/thumbs/QQbo72SE_100x50_q85.jpg

... without first .jpg.?

(I check before if there are images present)

Thank you,

Kind regards.

@SmileyChris
Copy link
Owner

No, I decided to do this to ensure consistency. The thumbnail will be rendered as a jpg, but the source image may be any type (or extension). In which case, it's nice to know the full source name.

As a secondary advantage, it allows for you to do rm QQbo72SE.jpg* :)

@roodie
Copy link

roodie commented May 2, 2011

Actually this can be a problem with rich text editors. I am using TinyMCE, and it's image module will simply fail to insert the thumbnail with such filenames.

@SmileyChris
Copy link
Owner

You can override the method which generates the filename if it's a problem in your case (but the problem here really lies with the rich text editor, not easy-thumbnails).

This issue was closed.
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