mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 04:13:49 +01:00
exiftool: -ignoreMinorErrors
This commit is contained in:
parent
7044ec8ace
commit
64a47355f1
2
post.php
2
post.php
@ -528,7 +528,7 @@ if (isset($_POST['delete'])) {
|
|||||||
|
|
||||||
if ($config['redraw_image'] || (!@$post['exif_stripped'] && $config['strip_exif'] && ($post['extension'] == 'jpg' || $post['extension'] == 'jpeg'))) {
|
if ($config['redraw_image'] || (!@$post['exif_stripped'] && $config['strip_exif'] && ($post['extension'] == 'jpg' || $post['extension'] == 'jpeg'))) {
|
||||||
if (!$config['redraw_image'] && $config['use_exiftool']) {
|
if (!$config['redraw_image'] && $config['use_exiftool']) {
|
||||||
if($error = shell_exec_error('exiftool -q -all= ' . escapeshellarg($upload)))
|
if($error = shell_exec_error('exiftool -ignoreMinorErrors -q -all= ' . escapeshellarg($upload)))
|
||||||
error('Could not strip EXIF metadata!', null, $error);
|
error('Could not strip EXIF metadata!', null, $error);
|
||||||
} else {
|
} else {
|
||||||
$image->to($post['file']);
|
$image->to($post['file']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user