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
getting thumbnail image on python code #13
Comments
Good point, I'll add a paragraph to that effect to the docs. Until then: it's actually basic easy_thumbnails code so you'll be able to use the same code as without django-image-cropping: http://easy-thumbnails.readthedocs.org/en/latest/usage/#python The only difference is the new parameter box. The example from our README would look like this in Python code:
|
Worked as expected. Thank you so much |
But if I don't want to create the thumbnail again. |
What I did (and I'm sure they must have a better way of doing) to get exactly the thumbnail created by the admin user (without recreating it): |
Well, if you call This is expected behaviour, the thumbnails should always be purgeable since they can easily be recreated from scratch. I'm not sure which problem you're trying to solve by not recreating it - you wouldn't have anything to display in that case. |
But as I get the picture that was cut by the user with javascript. (Considering the variables of ImageRatioField)? |
Well, cropping the image would create a new thumbnail again. I thought that's what you wanted to avoid? If not, pass the "box" parameter with the cropping value to get_thumbnailer. |
I just want to get the image that is already cut by admin. 2012/12/4 Jonas notifications@github.com
AVISO LEGAL |
The documentation only shows how to get a thumbnail image on django template.
I'm trying to display the thumbnails in admin list_display. Is it possible to return the thumbnail image path in python code using the image and cropping fields?
Thank you
The text was updated successfully, but these errors were encountered: