You are here

function imagecache_autorotate_form in ImageCache Actions 7

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. 6 imagecache_autorotate.module \imagecache_autorotate_form()

Builds the auto-rotate form.

This effect has no options, only some help text, so the form is displayed anyway.

1 string reference to 'imagecache_autorotate_form'
imagecache_autorotate_image_effect_info in autorotate/imagecache_autorotate.module
Implements hook_image_effect_info().

File

autorotate/imagecache_autorotate.module, line 51
Autorotate image based on EXIF Orientation tag.

Code

function imagecache_autorotate_form() {
  $form = array();
  $form['help'] = array(
    '#markup' => "<p><strong>There are no user-configurable options for this process.</strong></p>\n      <p>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      <em>Not all cameras or images contain this information.</em>\n      This process is only useful for images that contain this information,\n      whereas for other images it is harmless.\n      </p>\n      <p>Although most modern browsers do support the orientation tag, the\n      information may get lost or become incorrect by other operations.\n      So, to support all browsers and prevent rotation errors, it is better to\n      start each image style with this effect.\n      </p>\n      <p>The expected/supported values are:<br/>\n      <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>Wikipedia: <a href='https://en.wikipedia.org/wiki/Exchangeable_image_file_format'>Exchangeable image file format</a></p>\n    ",
  );
  return $form;
}