-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
Ugly Image Path #482
Comments
Doubtful. See this comment:
|
I don't think it's a good idea to use the kind of name you are looking for. Here you have a full guarantee that the filename will not be reused. So you can for example cache it forever in a CDN or at least for a very long duration. If you use predictable names like the ones you are looking for, if for any reason you need to regenerate the image, they will take the same names again and then you may have stale images cached everywhere. |
Does this answer your question, @ErkinAkbudak ? Have you tried override the default thumbnail backend and creating your own one? |
I had the similar need and this worked for me:
That creates thumbnail path like this:
And (optionally) you can also modify the name:
|
Model
Template
And my thumb path
http://127.0.0.1:8000/media/cache/2a/cf/2acf000bda53bcad6bf9573c00c3f8f2.jpg
This is bad for seo. I want orginal filename on thumb. E.g
http://127.0.0.1:8000/media/orginal-name-300x500.jpg
http://127.0.0.1:8000/media/orginal-name-medium.jpg
Is this possible? Thanks in advance
The text was updated successfully, but these errors were encountered: