Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Turn original image

A widget for image file fields to turn (rotate) uploaded images by fixed angles. All image derivatives (thumbnail, medium, large...) will then get created from the turned image. The uploaded image (not rotated) is kept back to reset it later, if you want to.

Drupal image styles are cool, but there are situations when you need a different approach.

Example: you have a digital camera and take a lot of photos. You want to upload them to your Drupal and create image galleries or slideshows (views possibly or field collections) or show image nodes as teaserlists.
Your problem: Your camera has no sensor to detect portrait or landscape images or there are problems with EXIF data, so you can't use EXIF orientation values.

You upload your images and want to turn (rotate) selected images by fixed angles (90 degree steps). Nothing too fancy, right?
For some strange reason such a Drupal module does not exist yet.
At least I didn't find one.

The imagefield_crop module was a good inspiration. I liked the idea of copying the original image aside to be able to reset it later without losing quality.

What this module does, what you can do with it:

  • It provides a widget to turn the image right after upload or later (90, 180, 270 degrees)
  • The widget has a collapsed fieldset - open it and click on the preview image to rotate it
  • You save the item (node / entity) after changes
  • All Drupal image derivatives for this file get created from the rotated image
  • Next time when you edit the image (node / entity), you will find a "Reset" button next to the Remove button.
  • If you decide that another angle would look better, you can always rotate again based on the original image, so you don't lose more quality than necessary with jpegs.

Let me know, if you find this functionality useful.

Requirements

  • Drupal's core image module enabled
  • PHP 5.2 or newer on server
  • A current browser (at least IE9 or any modern browser)

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Module categories: Media
  • Created by indigoxela on , updated