Keep EXIF Orientation

main
Pk11 2 years ago
parent f6d22bca83
commit 07a81d6414

@ -111,7 +111,7 @@
if($img['type'] != 'image/bmp') { if($img['type'] != 'image/bmp') {
// Strip EXIF data // Strip EXIF data
exec("exiftool -overwrite_original -all:all= '$target'", $output, $ret); exec("exiftool -overwrite_original -all:all= -tagsfromfile @ -exif:Orientation '$target'", $output, $ret);
if($ret != 0) if($ret != 0)
return 'Unable to upload image, please contact the webmaster.'; return 'Unable to upload image, please contact the webmaster.';
} }

Loading…
Cancel
Save