We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39066a3 + b877eaf commit aee4e25Copy full SHA for aee4e25
lib/ImageResize.php
@@ -213,11 +213,11 @@ public function imageCreateJpegfromExif($filename)
213
$orientation = $exif['Orientation'];
214
215
if ($orientation === 6 || $orientation === 5) {
216
- $img = imagerotate($img, 270, null);
+ $img = imagerotate($img, 270, 0);
217
} elseif ($orientation === 3 || $orientation === 4) {
218
- $img = imagerotate($img, 180, null);
+ $img = imagerotate($img, 180, 0);
219
} elseif ($orientation === 8 || $orientation === 7) {
220
- $img = imagerotate($img, 90, null);
+ $img = imagerotate($img, 90, 0);
221
}
222
223
if ($orientation === 5 || $orientation === 4 || $orientation === 7) {
0 commit comments