Twinside / Juicy.Pixels

Haskell library to load & save pictures
BSD 3-Clause "New" or "Revised" License
237 stars 57 forks source link

Width and height incorrect for exif image #195

Open jgm opened 3 years ago

jgm commented 3 years ago

decodeImageWithMetadata returns the following metadata for this image (see jgm/pandoc#6936).

,Width :=> 4608
,Height :=> 3456
,Exif (TagUnknown 40963) :=> ExifLong 2539
,Exif (TagUnknown 40962) :=> ExifLong 4537

These unknown exif tags correspond to Exif Height and Width respectively. I think they should be used for Width and Height for exif images. At any rate, this is the width and height returned by macos preview, jpeginfo, and other tools. I am not sure where JuicyPixels is getting this Width and Height.