Author Topic: Issues with by-line and max byte length after editing in Photoshop  (Read 340 times)

Offline mgphoto314

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Hello -

I am having issues where a client has changed style and now wants the creator/photographer field to have the byline designation to fit the CMS. For years, it's just been the photographer's name (as I think the field is intended), but the CMS and the style online and in their print layout system wants to have the paper designation in it: "Michael Gulledge, Special to the Post-Dispatch".

Originally, I was having issues where Photoshop was cutting everything after the comma, but realized this was a PM setting and switched to semi-colon to separate repeating fields. That problem is easily solved.

Easy enough I thought. Except what's displaying for them is: "Michael Gulledge, Special to the".

Let me start by saying that I am 99.99% sure this is not a PM problem that's breaking this flow.

My workflow:
1. Import with a template
2. Write cutlines in the import folder
3. Edit in Photoshop
4. Save into edited subfolder (via a JSX I wrote to automate it on a function key but tested and that v. saving normally is no different)
5. Send from PM via FTP no changes

When I finish editing, the creator/photographer field is not changed in PM and looks fine. I filed and they displayed incorrectly, so I started digging in.

I can see via exiftool that the CMS apparently uses the 'by-line' field in the IPTC. I've seen from past posts here that creator/photographer and by-line are somewhat renamed, but this is clearly the issue:
Code: [Select]
% exiftool -Caption-Abstract -By-line -Artist -Credit -Creator *
======== 20250531 mg 6436.JPG
Caption-Abstract                : NO EDIT IN PS. ..during a Class 4 state quarterfinal game, Saturday, May 31, 2025, at St. Dominic High School in O’Fallon, Mo. St. Dominic defeated Lafayette, 2-0.
[b]By-line                         : Michael Gulledge, Special to the Post-Dispatch
[/b]Credit                          : Michael Gulledge, Special to the Post-Dispatch
Creator                         : Michael Gulledge, Special to the Post-Dispatch
======== 20250531 mg 6557.jpg
Caption-Abstract                : EDIT IN PS. ..during a Class 4 state quarterfinal game, Saturday, May 31, 2025, at St. Dominic High School in O’Fallon, Mo. St. Dominic defeated Lafayette, 2-0.
[b]By-line                         : Michael Gulledge, Special to the
[/b]Artist                          : Michael Gulledge, Special to the Post-Dispatch
Credit                          : Michael Gulledge, Special to the Post-Dispatch
Creator                         : Michael Gulledge, Special to the Post-Dispatch

Looking into the IPTC spec https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata#creator, it appears to be hitting the max bytes limit and hence the cut to the shorter by-line (exactly 32 bytes).
Code: [Select]
IIM Specs 2:80 By-line, max bytes for text: 32

From what I can tell, everything is fine in Photo Mechanic until it's edited and saved in Photoshop. Photoshop then must enforce the IIM spec and cut the field to length, hence what I can see in exiftool.

My questions:
1. Is there any way to see the by-line field itself in Photo Mechanic?
2. I'm assuming Photoshop is strictly enforcing the IIM spec? (It looks like in the documentation that IIM is restrictive but references Image Creator, which I'm guessing PM is using and keeping in sync. Image creator doesn't seem to have a byte restriction.)
3. Right now my workaround will be to either load the template after the edit or to reapply that field after the edit before send. This seems to work fine and reset by-line to what I'm looking for. Is there any other way that I'm maybe missing?

I'm probably way too invested in this, but I'm mostly wanting to make sure my understanding is right and I'm not missing something before I add the step to the workflow. I think the field that should probably be used by the CMS is 7.9. Credit Line instead of 7.6. Creator, but that's beyond what I can control as a stringer and not their developer.

Versions:
PM: Photo Mechanic Version 6.0, build 7212 (90865b3)
PS: Adobe Photoshop 25.12 (Macintosh)

Thanks for any insight!

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25396
    • View Profile
    • Camera Bits, Inc.
Re: Issues with by-line and max byte length after editing in Photoshop
« Reply #1 on: June 01, 2025, 12:23:43 PM »
My questions:
1. Is there any way to see the by-line field itself in Photo Mechanic?

Yes, it is the "Photographer" field in PM.

2. I'm assuming Photoshop is strictly enforcing the IIM spec? (It looks like in the documentation that IIM is restrictive but references Image Creator, which I'm guessing PM is using and keeping in sync. Image creator doesn't seem to have a byte restriction.)

Sounds like it from your description.  PM does not enforce most of the length limits.

3. Right now my workaround will be to either load the template after the edit or to reapply that field after the edit before send. This seems to work fine and reset by-line to what I'm looking for. Is there any other way that I'm maybe missing?

If some software in your workflow is truncating data, then you'll have to add it back in prior to delivery.  You could always copy it to another field that is not truncated by that software, and apply a Metadata Template to copy from the stashed field back to the Photographer field and then clear the stashed field with another application of the template (a different template that clears just that one field.)

-Kirk

Offline mgphoto314

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Re: Issues with by-line and max byte length after editing in Photoshop
« Reply #2 on: June 01, 2025, 12:34:08 PM »
Thanks, Kirk!

If by-line is the photographer field in PM, why is it displaying the full string in PM but exiftool shows by-line truncated for the same file?

Edit: Added files.

Code: [Select]
exiftool -Caption-Abstract -By-line -Artist -Credit -Creator *
======== 20250531 mg 8409 copy.jpg
Caption-Abstract                : during a Class 4 state quarterfinal game, Saturday, May 31, 2025, at St. Dominic High School in O’Fallon, Mo. St. Dominic defeated Lafayette, 2-0.
By-line                         : Michael Gulledge, Special to the
Artist                          : Michael Gulledge, Special to the Post-Dispatch
Credit                          : Michael Gulledge, Special to the Post-Dispatch
Creator                         : Michael Gulledge, Special to the Post-Dispatch


Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25396
    • View Profile
    • Camera Bits, Inc.
Re: Issues with by-line and max byte length after editing in Photoshop
« Reply #3 on: June 01, 2025, 07:13:58 PM »
If by-line is the photographer field in PM, why is it displaying the full string in PM but exiftool shows by-line truncated for the same file?

Code: [Select]
exiftool -Caption-Abstract -By-line -Artist -Credit -Creator *
======== 20250531 mg 8409 copy.jpg
Caption-Abstract                : during a Class 4 state quarterfinal game, Saturday, May 31, 2025, at St. Dominic High School in O’Fallon, Mo. St. Dominic defeated Lafayette, 2-0.
By-line                         : Michael Gulledge, Special to the
Artist                          : Michael Gulledge, Special to the Post-Dispatch
Credit                          : Michael Gulledge, Special to the Post-Dispatch
Creator                         : Michael Gulledge, Special to the Post-Dispatch

Legacy IPTC
0x026e IPTC_CREDIT : Michael Gulledge, Special to the
0x0250 IPTC_BYLINE : Michael Gulledge, Special to the

XMP
photoshop:Credit="Michael Gulledge, Special to the Post-Dispatch"
<dc:creator>
  <rdf:Seq>
    <rdf:li>Michael Gulledge, Special to the Post-Dispatch</rdf:li>
  </rdf:Seq>
</dc:creator

EXIF (not sure which tag, sorry, that's Dennis' thing)
Michael Gulledge, Special to the Post-Dispatch

PM is generally going to be using the XMP data.  I expect that your CMS is using legacy IPTC data.

HTH,

-Kirk