ExifTool Forum

ExifTool => Newbies => Topic started by: adamboese on July 14, 2021, 02:06:48 PM

Title: Invalid Size for Image Source Data Tag
Post by: adamboese on July 14, 2021, 02:06:48 PM
Hi,

I'm having an issue reading the Image Source Data with my larger image files.

I am trying to sort a selection of images based on the layer names contained in the image. Many of the images are obscenely large (3+ GB). The command I'm running is:

exiftool -"Layernames" DIR

This gives me the following error:

Warning: Invalid size (2639629412) for IFD0 tag 0x935c ImageSourceData - FILE

I updated my exiftool and I am running Big Sur. Is there a way to circumvent this issue? Or is Exiftool only compatible with smaller images?

Many thanks,
Adam
Title: Re: Invalid Size for Image Source Data Tag
Post by: StarGeek on July 14, 2021, 02:21:19 PM
This will probably require Phil's attention, but you might try adding the -api LargeFileSupport option (https://exiftool.org/ExifTool.html#LargeFileSupport) to your command.
Title: Re: Invalid Size for Image Source Data Tag
Post by: Phil Harvey on July 14, 2021, 04:44:40 PM
Hi Adam,

Thanks for this report.  ExifTool does a sanity check on the size of EXIF tags, and currently rejects anything > 2 GB because up until now this has always meant the file is corrupted.  But I'll put an exception for ImageSourceData now that we've seen a file with valid data this large.

ExifTool 12.30 (when released) should be able to read this file.

- Phil
Title: Re: Invalid Size for Image Source Data Tag
Post by: adamboese on July 15, 2021, 11:43:47 AM
Thank you both for your responses.

I tried the LargeFileSupport option to no avail. I look forward to ExifTool 12.30!

Also, this forum is fantastic. Thanks for all the work you all put in.