Skip to content

Commit 1267f13

Browse files
author
FreedomKnight
committed
fix to 100 quality
1 parent 8aeece9 commit 1267f13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FileApi.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ private function setTmpImage($upload_file)
232232
switch ($exif['Orientation']) {
233233
case 8:
234234
$img = imagerotate($img, 90, 0);
235-
imagejpeg($img, $image_path);
235+
imagejpeg($img, $image_path, 100);
236236
break;
237237
case 3:
238238
$img = imagerotate($img, 180, 0);
239-
imagejpeg($img, $image_path);
239+
imagejpeg($img, $image_path, 100);
240240
break;
241241
case 6:
242242
$img = imagerotate($img, -90, 0);
243-
imagejpeg($img, $image_path);
243+
imagejpeg($img, $image_path, 100);
244244
break;
245245
}
246246
}

0 commit comments

Comments
 (0)