mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user