diff --git a/CHANGELOG b/CHANGELOG index 3e0cf40..3f7c042 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,9 +1,10 @@ Revision history for Lutim 0.17.0 ????-??-?? + - π β AVIF format support 0.16.0 2023-12-29 - - β¬οΈ UUpdate jQuery + - β¬οΈ Update jQuery - π₯ BREAKING CHANGE: no more twitter cards - π¨ β Use template literals in js - π β Gallery, zip and random URLs are now updated when closing image dialog box diff --git a/lib/Lutim/Controller/Image.pm b/lib/Lutim/Controller/Image.pm index 9c5c623..5f56b95 100644 --- a/lib/Lutim/Controller/Image.pm +++ b/lib/Lutim/Controller/Image.pm @@ -416,7 +416,9 @@ sub add { my $path = 'files/'.$record->short.'.'.$ext; my ($width, $height); - if ($im_loaded && $mediatype ne 'image/svg+xml' && $mediatype !~ m#image/(x-)?xcf# && $mediatype ne 'image/webp') { # ImageMagick don't work in Debian with svg (for now?) + if ($im_loaded && $mediatype ne 'image/svg+xml' # ImageMagick doesn't work with SVG, xcf or avif files + && $mediatype !~ m#image/(x-)?xcf# + && $mediatype ne 'image/avif') { my $im = Image::Magick->new; $im->BlobToImage($upload->slurp); @@ -484,7 +486,9 @@ sub add { } unless (defined($keep_exif) && $keep_exif) { - if ($mediatype ne 'image/svg+xml' && $mediatype !~ m#image/(x-)?xcf# && $mediatype ne 'image/webp') { + # Exiftool canβt process SVG or xcf files + if ($mediatype ne 'image/svg+xml' + && $mediatype !~ m#image/(x-)?xcf#) { # Remove the EXIF tags my $data = new IO::Scalar \$upload->slurp(); my $et = Image::ExifTool->new; diff --git a/themes/default/templates/index.html.ep b/themes/default/templates/index.html.ep index e3d0c4b..04134f6 100644 --- a/themes/default/templates/index.html.ep +++ b/themes/default/templates/index.html.ep @@ -180,7 +180,7 @@