Update images.lib.php
This commit is contained in:
parent
c0b35ded15
commit
327cf29b41
@ -325,7 +325,6 @@ function correctExifImageOrientation($fileSource, $fileDest, $quality = 95)
|
|||||||
if (function_exists('exif_read_data') ) {
|
if (function_exists('exif_read_data') ) {
|
||||||
$exif = exif_read_data($fileSource);
|
$exif = exif_read_data($fileSource);
|
||||||
if ($exif && isset($exif['Orientation'])) {
|
if ($exif && isset($exif['Orientation'])) {
|
||||||
|
|
||||||
$infoImg = getimagesize($fileSource); // Get image infos
|
$infoImg = getimagesize($fileSource); // Get image infos
|
||||||
|
|
||||||
$orientation = $exif['Orientation'];
|
$orientation = $exif['Orientation'];
|
||||||
@ -357,7 +356,7 @@ function correctExifImageOrientation($fileSource, $fileDest, $quality = 95)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// then rewrite the rotated image back to the disk as $fileDest
|
// then rewrite the rotated image back to the disk as $fileDest
|
||||||
if($fileDest === false){
|
if ($fileDest === false){
|
||||||
return $img;
|
return $img;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user