diff options
| author | John MacFarlane <[email protected]> | 2025-08-14 22:12:39 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-08-14 22:13:34 -0700 |
| commit | bb6c58c851ba0ffbcd6c525d058177f22f90cddd (patch) | |
| tree | e512d7c9e0a9db56ac1a68b1ee4ea8b01f2adc32 /src | |
| parent | 2234a6b08f68c0f6a6f74c40a6e23e2e86f52962 (diff) | |
ImageSize: Handle jpgs with signature FF D8 FF EE.
Closes #11049.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/ImageSize.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/ImageSize.hs b/src/Text/Pandoc/ImageSize.hs index a939fdbae..11b2ecf53 100644 --- a/src/Text/Pandoc/ImageSize.hs +++ b/src/Text/Pandoc/ImageSize.hs @@ -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" |
