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.
1 parent ad17f65 commit cd29ab0Copy full SHA for cd29ab0
src/FileApi.php
@@ -204,19 +204,20 @@ private function setTmpImage($upload_file)
204
switch ($exif['Orientation']) {
205
case 8:
206
$img = imagerotate($img, 90, 0);
207
+ imagepng($img, $upload_file->getRealPath());
208
break;
209
case 3:
210
$img = imagerotate($img, 180, 0);
211
212
213
case 6:
214
$img = imagerotate($img, -90, 0);
215
216
217
}
218
219
220
- imagepng($img, $upload_file->getRealPath());
-
221
return $img;
222
} else {
223
return null;
0 commit comments