ImageSize: Handle jpgs with signature FF D8 FF EE.

Closes #11049.
This commit is contained in:
John MacFarlane
2025-08-14 22:13:34 -07:00
parent 2234a6b08f
commit bb6c58c851
+1
View File
@@ -121,6 +121,7 @@ imageType img = case B.take 4 img of
"\x4D\x4D\x00\x2a" -> return Tiff
"\xff\xd8\xff\xe0" -> return Jpeg -- JFIF
"\xff\xd8\xff\xe1" -> return Jpeg -- Exif
"\xff\xd8\xff\xee" -> return Jpeg -- Exif see #11049
"%PDF" -> return Pdf
"<svg" -> return Svg
"<?xm"