Changeset 8763


Ignore:
Timestamp:
Jan 19, 2011, 3:00:38 PM (9 years ago)
Author:
plg
Message:

feature 2040: to finish the "automatic rotation" feature, I had configuration
setting. I choose to have it in the configuration file and not in the web
interface because it is a bit too technical and useful only in very specific
cases (when buggy software performed a rotation before without updating the
EXIF "orientation" tag)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upload.inc.php

    r8728 r8763  
    595595function get_rotation_angle($source_filepath)
    596596{
     597  global $conf;
     598
     599  if (!$conf['upload_form_automatic_rotation'])
     600  {
     601    return null;
     602  }
     603 
    597604  $rotation = null;
    598605 
  • trunk/include/config_default.inc.php

    r8757 r8763  
    762762$conf['alternative_pem_url'] = '';
    763763
    764 
     764// based on the EXIF "orientation" tag, should we rotate photos added in the
     765// upload form or through pwg.images.addSimple web API method?
     766$conf['upload_form_automatic_rotation'] = true;
    765767?>
Note: See TracChangeset for help on using the changeset viewer.