Putting filename into jpg title works for some jpg types only???

Started by TJT, January 28, 2021, 10:10:55 AM

Previous topic - Next topic

TJT

Hello. This may sound silly but I have no idea how deep I might need to dig for an answer - just a new user.
Exiftool  in a file called  with this content (named zArgCopyFilenametoJPGTitle.txt) -
"-iptc:caption-abstract<filename
-preserve
-k"
- successfully puts the jpg filename name into "title"  (Win10, file explorer, right-click, properties, details) for photos taken with my phone (samsung s10e) or created from PC screenshots in Adobe photoshop - but NOT for photos taken with my Nikon P950. Even when said files are "saved-as" in Photoshop.
These files are usually twice the size of the phone pics (8M rather than 3-4) but I can't think why they read as "processed" but title field remains blank. Help appreciated ! Thanks, Tim.

StarGeek

That is unusual.  Are you setting other IPTC tags?  Are you embedding a large amount of data into the file (64k or more)?  Can you make a sample available?

Windows does have a problem when embedded data passes the 64k block size that jpgs have, but this is most commonly a problem with regards to the embedded thumbnail (it will appear broken or incomplete on the desktop).

There are other locations you can try to use to fill that Windows property.  See this post.  Other tags include XMP:Title, EXIF:ImageDescription, XMP:Description, and EXIF:XPTitle.

* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

TJT

Thank you for the reply. I am not knowingly setting other IPTC tags in this process.
I have found a work-around solution that should not be necessary, as follows -
A. In Windows File explorer, I select a batch of files, go to properties > details > and set title to "xx" (for a batch of files that appear to have no title information).
B. Then again, in Windows File explorer, I select those same files, go to properties > details > and reset title to "" (i.e. I "blank" what's there).
C. Thereafter, Exiftool worked properly and put the filename into the vacant "title" field.

So, are files that appeared to have no title, not even just space(s), different from files that have had a title assigned and then blanked - ??

There's a note here - Windows File explorer isn't the best tool but I am just an amateur.   If at step (A) above I select a mixture of files that have a visible title, and those that don't, I see a "multiple values" notation and cannot just se them all to blank or "xx" or whatever.   
So, while my workaround is OK, it is a bit of a pain to have to JUST select the "problem" files, add a title, then blank it, before Exiftool then works OK.
Any enlightenment appreciated.  Thanks, Tim.

I am attempting to add 2 example files to this post.

StarGeek

Is that attached file one that was causing problems or one you fixed?  Because when I added  text to Caption-Abstract from exiftool, it showed up properly.  I can't reproduce the problem you describe.

But I do notice that your attached file has two very large MPImage blocks, one of 68,304 bytes and one of 532,3821.  Both of these would have to have been split due to the 64k block limit in jpegs and Windows doesn't handle split blocks well.  So it's likely this is the source of the problem.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).