We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87e1a3b + cd29ab0 commit 8aeece9Copy full SHA for 8aeece9
src/FileApi.php
@@ -232,16 +232,18 @@ private function setTmpImage($upload_file)
232
switch ($exif['Orientation']) {
233
case 8:
234
$img = imagerotate($img, 90, 0);
235
+ imagejpeg($img, $image_path);
236
break;
237
case 3:
238
$img = imagerotate($img, 180, 0);
239
240
241
case 6:
242
$img = imagerotate($img, -90, 0);
243
244
245
}
246
- imagejpeg($img, $image_path);
247
} catch (\Exception $e) {
248
//ignore cannot read exif
249
0 commit comments