ExifTool Forum

ExifTool => Developers => Topic started by: Joanna Carter on August 20, 2018, 07:23:46 AM

Title: Curious warning when adding keyword
Post by: Joanna Carter on August 20, 2018, 07:23:46 AM
Having now got ExifTool to read tags, etc from an image, I now have a warning message in the console when executing this from code:

exiftool -Keywords+=fred

This gives me:
Warning: [minor] Oversized SubIFD1 StripByteCounts (72737280 bytes, but expected 63645120) - /Users/joannacarter/Pictures/JNA_0052.NEF

But the captured output from the execution is "    1 image files updated\n"

... and, indeed the file has been updated, albeit its size is now different (smaller in bytes but some 8Mb bigger on disk)

Is this to be expected and can the warning be suppressed/ignored?

I get the same warning if I use:

exiftool -Keywords=fred

... which obviously replaces the existing keywords but which doesn't affect the on-disk file size
Title: Re: Curious warning when adding keyword
Post by: Phil Harvey on August 20, 2018, 07:31:24 AM
Minor warnings may be suppressed with -m

This particular warning isn't a big problem.  It just means that there could be some unused data in the image strips.  I don't yet know why some image writers do this.

- Phil
Title: Re: Curious warning when adding keyword
Post by: Joanna Carter on August 20, 2018, 07:38:52 AM
Many thanks Phil.

I'm really going to have to read the docs a bit more thoroughly to get a grasp on all these flags  ;)

Anyhow, now even the += is not affecting the on-disk file size so drastically; that must be simply the OS doing something when it reaches a certain allocation level.

I am now pleased to report that I am well on the way to creating a Swift wrapper  8)