This commit is contained in:
IC Rainbow
2024-10-31 13:32:45 +02:00
parent b7c77651bc
commit d91bae8c9c
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ resizeImageToSize toURI maxSize (ResizeableImage fmt img encoder) = either resiz
| otherwise = fitQuality 33 99
where
encode q
| toURI = toDataUri "jpeg" $ enc q img
| toURI = toDataUri "jpg" $ enc q img -- the correct mime type is "jpeg", but only "jpg" is supported by older clients
| otherwise = enc q img
minSize = LB.length $ encode 33
fitQuality l u