forked from leftypol/leftypol
post.php: strip metadata from png and webp image file types
This commit is contained in:
parent
8e5b09c687
commit
97e41d1c7f
1 changed files with 1 additions and 1 deletions
2
post.php
2
post.php
|
@ -1251,7 +1251,7 @@ function handle_post()
|
|||
$thumb->_destroy();
|
||||
}
|
||||
|
||||
if ($config['redraw_image'] || (!@$file['exif_stripped'] && $config['strip_exif'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg'))) {
|
||||
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 (
|
||||
$error = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= ' .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue