1

an image has been taken upside down, then rotated with any software, then uploaded to my Drupal website and it shows how it was originally taken because it read the Exif metadata.

Is there a way to avoid this?

or, if that's not possible,

how can I add a rotation Image Style drop down that the editor can select when creating the node?

Based on the picture preview, after uploading the picture, the editor would select an Image Style that would set the orientation of the picture right. if the picture is upside down, the editor could selec

  • 1
    How was image rotated? By changing EXIF orientation, or by altering real data and leaving orientation in place? Also, please read this article - no module will be able to correctly interpret EXIF orientation, because there are too many "correct", widely used but contradicting interpretations. – Mołot Sep 5 '14 at 6:47
2

Please read this article - no module will be able to correctly interpret EXIF orientation, because there are too many "correct", widely used but contradicting interpretations. Even biggest brands have problems with this. Even if your site will not rotate image, browser still can.

To go around this problem, you can use Formatter Field module:

For example, say you have a page node with an image field. Normally, you would select an image style as the formatter, and all page nodes would use that same image style. With this module, you can add a formatter field to page nodes, which is hooked up to the image field. Then when the node is created or edited, the image style can be selected per-node.

It's officially still in beta, but that's the best solution I know if you have no control over user's uploads. If you are the only one who uploades, just strip EXIF data (at least orientation part) and make sure you save your files without any, when preparing them for upload.

0

A better solution is now available. Simply download and enable module Image EXIF Autorotate and all uploads will be automatically rotated respecting the EXIF orientation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.