Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b877eaf

Browse files
committed
Replacing deprecated null parameter #3 of imagerotate() by 0
1 parent 39066a3 commit b877eaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/ImageResize.php

Lines changed: 3 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /