Author Topic: Bug report: Transref not being read from XMP  (Read 2807 times)

Offline carlseibert

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Bug report: Transref not being read from XMP
« on: May 03, 2018, 09:03:02 AM »
Hi,

I think I stumbled on a bug, which is an extremely rare occurrence in PM.

It appears that PM is writing the Transref/Job ID field to the correct places in both the IIM and XMP blocks.

But it's not reading from the XMP version of the field.

I'm attaching a file with only the XMP version of transref filled in.



Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: Bug report: Transref not being read from XMP
« Reply #1 on: May 03, 2018, 11:05:47 AM »
It's working for me.  See attached.  What do your IPTC/XMP settings look like?

-Kirk

Offline carlseibert

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Bug report: Transref not being read from XMP
« Reply #2 on: May 03, 2018, 10:40:30 PM »
Hi,

I remembered that I hadn't included my build number (Photo Mechanic Version 5.0, build 19395 (69a3200) and the fact that I had "prefer IPTC/IIM" set, and I decided to look at one more test file before I updated my post. Strangeness happened.

I ended up with test files written by Photo Mechanic, Photoshop, ExifTool, XnView, and On1 RAW.

All of them except the ON1 RAW file read fine in PM.

The ON1 RAW (Which turns out to be the one I sent earlier) file reads fine in all the other programs, but doesn't in Photo Mechanic.

In ExifTool, that tag looks identical in all the files, from all the programs.

But in a hex editor, the header of the ON1 RAW file looks quite different.

So, I (sort of) can't reproduce my own bug.

But it is puzzling that all the other programs can read this particular bit of XMP and Photo Mechanic can't. Obviously, there's something here that I'm not understanding correctly. Photo Mechanic is apparently less permissive somehow?

-Carl

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: Bug report: Transref not being read from XMP
« Reply #3 on: May 04, 2018, 07:21:59 AM »
Carl,

All of them except the ON1 RAW file read fine in PM.

The ON1 RAW (Which turns out to be the one I sent earlier) file reads fine in all the other programs, but doesn't in Photo Mechanic.

But it is puzzling that all the other programs can read this particular bit of XMP and Photo Mechanic can't. Obviously, there's something here that I'm not understanding correctly.

But as you saw, with your sample image, it did work in Photo Mechanic for me.  That's why I asked for your IPTC/XMP settings.  Please post a screen grab (JPEG) of your settings so we can compare.

Thanks,

-Kirk

Offline carlseibert

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Bug report: Transref not being read from XMP
« Reply #4 on: May 04, 2018, 12:57:09 PM »
Hi Kirk,

Here you go.

Yeah, it didn't dawn on me until after I posted last night that you looked at the exact same file I was looking at.

When I set Photo Mechanic to read XMP first, I got the same results you did.

This may well be a bug in ON1 RAW.

But it seems like Photo Mechanic should revert to the XMP if the IIM is missing in any case. So I'm puzzled.

-Carl

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: Bug report: Transref not being read from XMP
« Reply #5 on: May 04, 2018, 04:13:45 PM »
Carl,

When I set Photo Mechanic to read XMP first, I got the same results you did.

This may well be a bug in ON1 RAW.

But it seems like Photo Mechanic should revert to the XMP if the IIM is missing in any case. So I'm puzzled.

PM5 doesn't fall back to any other metadata if your first choice is found.

PM6 will fall back to other metadata on a field-by-field basis.

-Kirk