drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.57k stars 482 forks source link

HEIF image width & image height not correct? #569

Open gpsmit opened 2 years ago

gpsmit commented 2 years ago

Hi Drew, I noticed that the HEIF Directory always returns the following:

HEIF - Width - 512 pixels HEIF - Height - 512 pixels

While the actual the EXIF directory returns the proper sizes: Exif SubIFD - Exif Image Width - 4032 pixels Exif SubIFD - Exif Image Height - 3024 pixels

perhaps it is grabbing these, or is something else happening?: Exif IFD0 - Tile Width - 512 Exif IFD0 - Tile Length - 512

Attached a sample HEIC

citron.HEIC.zip

ArchanaAnand0212 commented 1 year ago

Hi, Even the heigh/width Exif SubIFD - Exif Image Width - 4032 pixels Exif SubIFD - Exif Image Height - 3024 pixels Seems like some default height and width. I am seeing that actual height and width for my image is 2902 × 3869 pasting screen shot of extracted directory information

Screenshot 2023-07-28 at 12 16 02 PM Screenshot 2023-07-28 at 12 16 29 PM Screenshot 2023-07-28 at 12 16 43 PM