You are here

function imagecache_autorotate_form in ImageCache Actions 6

Same name and namespace in other branches
  1. 8 autorotate/imagecache_autorotate.module \imagecache_autorotate_form()
  2. 6.2 autorotate/imagecache_autorotate.module \imagecache_autorotate_form()
  3. 7 autorotate/imagecache_autorotate.module \imagecache_autorotate_form()

Declare dummy form, since we have no settings.

File

./imagecache_autorotate.module, line 46
Autorotate image based on EXIF Orientation tag. http://sylvana.net/jpegcrop/exif_orientation.html

Code

function imagecache_autorotate_form() {
  $form = array();
  $form['help'] = array(
    '#type' => 'markup',
    '#value' => "<p>\n      <b>There are no user-configurable options for this process.</b>\n      </p><p>\n      Certain cameras can embed <em>orientation</em> information into image\n      files when they save them. This information is embedded in an EXIF tag\n      and can be used to rotate images to their correct position for display.\n      </p><p>\n      <em>Not all cameras or images contain this information.</em> \n      This process is only useful for those that do.\n      </p><p>\n      The expected/supported values are\n      <br/><strong>Tag</strong>: <code>0x0112  Orientation</code>\n      </p>\n      <ul>\n      <li>1 = Horizontal (normal)</li>\n      <li>3 = Rotate 180</li>\n      <li>6 = Rotate 90 CW</li>\n      <li>8 = Rotate 270 CW</li>\n      </ul>\n      <p>\n      <a href='http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/EXIF.html'>\nEXIF Reference</a>\n      </p>\n    ",
  );
  return $form;
}