Do not try to remove EXIF tags from xcf or webp images

This commit is contained in:
Luc Didry
2016-06-09 23:37:43 +02:00
parent 9f872a3f6a
commit c03082c2c1
+1 -1
View File
@@ -366,7 +366,7 @@ sub add {
}
unless ((defined($keep_exif) && $keep_exif) || $mediatype eq 'image/svg+xml') {
unless ((defined($keep_exif) && $keep_exif) || $mediatype eq 'image/svg+xml' || $mediatype !~ m#image/(x-)?xcf# || $mediatype ne 'image/webp') {
# Remove the EXIF tags
my $data = new IO::Scalar \$upload->slurp();
my $et = new Image::ExifTool;