diff options
author | plegall <plg@piwigo.org> | 2011-01-19 14:00:38 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-01-19 14:00:38 +0000 |
commit | 714219f490c7f176d7ecfae80e3afc2d5e329e97 (patch) | |
tree | e1b93974cdb004eb7ccd5a4ffcec964eb5dd8ba0 /admin/include | |
parent | 1b7781c8669ac98d656b57f4b540ef0fa818a94a (diff) |
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)
git-svn-id: http://piwigo.org/svn/trunk@8763 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/functions_upload.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php index 1f1bc6686..ad25f848c 100644 --- a/admin/include/functions_upload.inc.php +++ b/admin/include/functions_upload.inc.php @@ -594,6 +594,13 @@ function pwg_image_resize_im($source_filepath, $destination_filepath, $max_width function get_rotation_angle($source_filepath) { + global $conf; + + if (!$conf['upload_form_automatic_rotation']) + { + return null; + } + $rotation = null; $exif = exif_read_data($source_filepath); |