Skip to content

Commit

Permalink
bug 2164 fixed: disable automatic rotation if we can't read EXIF data
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@9021 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jan 31, 2011
1 parent 27203f1 commit aae2301
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions admin/include/functions_upload.inc.php
Expand Up @@ -601,6 +601,11 @@ function get_rotation_angle($source_filepath)
return null;
}

if (!function_exists('exif_read_data'))
{
return null;
}

$rotation = null;

$exif = exif_read_data($source_filepath);
Expand Down

0 comments on commit aae2301

Please sign in to comment.