Skip to content

Commit aee4e25

Browse files
Merge pull request #184 from pluc/master
Replacing deprecated null parameter #3 of imagerotate() by 0
2 parents 39066a3 + b877eaf commit aee4e25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ImageResize.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ public function imageCreateJpegfromExif($filename)
213213
$orientation = $exif['Orientation'];
214214

215215
if ($orientation === 6 || $orientation === 5) {
216-
$img = imagerotate($img, 270, null);
216+
$img = imagerotate($img, 270, 0);
217217
} elseif ($orientation === 3 || $orientation === 4) {
218-
$img = imagerotate($img, 180, null);
218+
$img = imagerotate($img, 180, 0);
219219
} elseif ($orientation === 8 || $orientation === 7) {
220-
$img = imagerotate($img, 90, null);
220+
$img = imagerotate($img, 90, 0);
221221
}
222222

223223
if ($orientation === 5 || $orientation === 4 || $orientation === 7) {

0 commit comments

Comments
 (0)