-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Rotate variations or keep exif info for JPEG #66
Comments
I'm using the following function as the callable in
|
@baxeico How did you call your render_variations function? I've tried this to no avail:
|
Solved it. Put your function in the models.py and called it with render_variations=resize_and_autorotate in the img declaration
But then I get an error, claiming: What happened there? Am I implementing this wrong @baxeico? |
@baxeico you will need to import |
I know this is an old issue.. but is there a chance this will be implemented into the library? I would like to avoid using a custom callable everywhere where I've used a StdImageField. |
@jckw it's not implemented yet, but we have the |
@codingjoe I think I should be able to have a look on this and create a PR. I briefly looked at the code and I think I could override the |
It would be amazing if a "check for JPEG deal with EXIF tags" could be option on the regular ImageField too! I assume we could just use whatever validator JPEG fields use to check that JPEGs are being used. |
I think it would be a great feature for both fields, but I would start with the @baxeico yes, be we should not rotate the original image, or at least not save a rotated version. It should remain unmodified. However, we can rotate it in memory before passing it to the |
Updated @baxeico's solution with
|
http://stackoverflow.com/a/11543365/649951
The text was updated successfully, but these errors were encountered: