Fix SVG upload, broken when working on EXIF tags

This commit is contained in:
Luc Didry
2016-06-06 21:58:27 +02:00
parent a1ce8618de
commit 41fef61f7c
+1 -1
View File
@@ -361,7 +361,7 @@ sub add {
$thumb .= b64_encode $im->ImageToBlob();
}
unless (defined($keep_exif) && $keep_exif) {
unless ((defined($keep_exif) && $keep_exif) || $mediatype eq 'image/svg+xml') {
# Remove the EXIF tags
my $data = new IO::Scalar \$upload->slurp();
my $et = new Image::ExifTool;