From 41fef61f7c1194e4a16e9b1ff854629541e958d3 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 6 Jun 2016 21:58:27 +0200 Subject: [PATCH] Fix SVG upload, broken when working on EXIF tags --- lib/Lutim/Controller.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lutim/Controller.pm b/lib/Lutim/Controller.pm index 2d57e63..97cf315 100644 --- a/lib/Lutim/Controller.pm +++ b/lib/Lutim/Controller.pm @@ -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;