From c03082c2c1325af58c8ea28662c70ce205573719 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Thu, 9 Jun 2016 23:37:43 +0200 Subject: [PATCH] Do not try to remove EXIF tags from xcf or webp images --- 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 32afdc3..8e78fc7 100644 --- a/lib/Lutim/Controller.pm +++ b/lib/Lutim/Controller.pm @@ -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;