aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions_upload.inc.php7
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);