Function __global->adjust_pic_orientation

Definitions

sources/images_cleanup_pipeline.php

  • Adjust an image to take into account EXIF rotation.Based on a comment in:http://stackoverflow.com/questions/3657023/how-to-detect-shot-angle-of-photo-and-auto-rotate-for-website-display-like-desk.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$image resource required parameter N/A N/A GD image resource
$exif ~array required parameter N/A N/A EXIF details (false: could not load)

Return

  • A pair: Adjusted GD image resource, Whether a change was made
  • Type: array
  • Set: N/A
  • Range: N/A