|
@ -1254,7 +1254,7 @@ function handle_post() |
|
|
if ($config['redraw_image'] || (!@$file['exif_stripped'] && $config['strip_exif'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg' || $file['extension'] == 'webp' || $file['extension'] == 'png'))) { |
|
|
if ($config['redraw_image'] || (!@$file['exif_stripped'] && $config['strip_exif'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg' || $file['extension'] == 'webp' || $file['extension'] == 'png'))) { |
|
|
if (!$config['redraw_image'] && $config['use_exiftool']) { |
|
|
if (!$config['redraw_image'] && $config['use_exiftool']) { |
|
|
if ( |
|
|
if ( |
|
|
$error = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= ' . |
|
|
$error = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= -Orientation ' . |
|
|
escapeshellarg($file['tmp_name'])) |
|
|
escapeshellarg($file['tmp_name'])) |
|
|
) { |
|
|
) { |
|
|
error(_('Could not strip EXIF metadata!'), null, $error); |
|
|
error(_('Could not strip EXIF metadata!'), null, $error); |
|
|