Author Topic: Code replacement issue using Fuji X camera serials  (Read 13575 times)

Offline PaulH

  • Newcomer
  • *
  • Posts: 6
    • View Profile
Code replacement issue using Fuji X camera serials
« on: June 26, 2018, 12:46:29 PM »
Hi all, new user of PM for code replacements.  Would appreciate any advice, as I cannot find a precise answer here or on the general web. The issue: cannot get code replacement to work with serial numbers of Fuji X cameras. Have created a UTF-8 tab text file that contains the serial number followed by a tab space then my replacement text. When I put the ={snum}= variable into an iptc field, I get the serial number generated by PM inside the delineator's = and not my replacement text. I am wondering if it is a "problem" with Fuji cameras since the serial number generated by PM bears no similarity to the number imprinted on the camera body. The generated number also appears to be in two parts. I have attached my Code text file. Any advice welcomed, thank you.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25019
    • View Profile
    • Camera Bits, Inc.
Re: Code replacement issue using Fuji X camera serials
« Reply #1 on: June 26, 2018, 02:49:19 PM »
In your Code Replacement file use the serial number that PM shows you, not the one on the camera body itself.

-Kirk

Offline PaulH

  • Newcomer
  • *
  • Posts: 6
    • View Profile
Re: Code replacement issue using Fuji X camera serials
« Reply #2 on: June 27, 2018, 01:37:16 AM »
Hi, Thanks. I am using the serial number that Photo Mechanic generates, not the one on the body. However the number is very long and is also in two parts. I cannot tell whether the two parts are just separated by a space or a tab:- here is one of them > 
FFDT23027800 5935303934341604225D603011490F
When I use the ={snum}= variable pasted into an IPTC field, or even {serial} or {serialnum}, I get the full number as shown along with the = either side, instead of the replacement text. Like this>
=FFDT23027800 5935303934341604225D603011490F=
I have tried both with and without the code replacement text file loaded via the drop down alongside the IPTC fields.
Addendum: I have just been able to try a Canon image file with the same Code Replacement text file (after adding the appropriate entry) and Stationery Pad which works just as it is supposed to. May be an issue with the length or extraction of the Fuji serial number?
« Last Edit: June 27, 2018, 06:21:22 AM by PaulH »

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25019
    • View Profile
    • Camera Bits, Inc.
Re: Code replacement issue using Fuji X camera serials
« Reply #3 on: June 27, 2018, 07:44:39 AM »
Paul,

Hi, Thanks. I am using the serial number that Photo Mechanic generates, not the one on the body. However the number is very long and is also in two parts. I cannot tell whether the two parts are just separated by a space or a tab:- here is one of them > 
FFDT23027800 5935303934341604225D603011490F
When I use the ={snum}= variable pasted into an IPTC field, or even {serial} or {serialnum}, I get the full number as shown along with the = either side, instead of the replacement text. Like this>
=FFDT23027800 5935303934341604225D603011490F=
I have tried both with and without the code replacement text file loaded via the drop down alongside the IPTC fields.
Addendum: I have just been able to try a Canon image file with the same Code Replacement text file (after adding the appropriate entry) and Stationery Pad which works just as it is supposed to. May be an issue with the length or extraction of the Fuji serial number?

Hard to say.  Please post your Code Replacement text file and I'll take a look at it.  Also, please post a sample image from your Fuji X camera in JPEG format (the full, original image from the camera).  Use the 'Attachments and other options' link when you're composing your reply to this message and there you'll be able to upload your files.

Thanks,

-Kirk

Offline PaulH

  • Newcomer
  • *
  • Posts: 6
    • View Profile
Re: Code replacement issue using Fuji X camera serials
« Reply #4 on: June 27, 2018, 09:21:41 AM »
Thank you Kirk, Attached the text file. Will have to send the Jpeg as a second post as it makes the upload too large and this page rejects it.

Offline PaulH

  • Newcomer
  • *
  • Posts: 6
    • View Profile
Re: Code replacement issue using Fuji X camera serials
« Reply #5 on: June 27, 2018, 09:23:27 AM »
Previous post generated an error message but seems to have transmitted the attachments anyway.

Offline PaulH

  • Newcomer
  • *
  • Posts: 6
    • View Profile
Re: Code replacement issue using Fuji X camera serials
« Reply #6 on: June 27, 2018, 01:18:15 PM »
This may be of some significance:
I've found that the Open Source program "ExifTool" interprets the Serial number quoted above
(FFDT23027800 5935303934341604225D603011490F) as the following:-
Internal Serial Number  :  FFDT23027800 593530393434 2016:04:22 5D603011490F

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25019
    • View Profile
    • Camera Bits, Inc.
Re: Code replacement issue using Fuji X camera serials
« Reply #7 on: June 29, 2018, 01:59:51 PM »
The serial number has more spaces in it than you have in your code replacement file.  I was able to use your sample image to get it right and I have corrected the file which is attached.

HTH,

-Kirk

Offline PaulH

  • Newcomer
  • *
  • Posts: 6
    • View Profile
Re: Code replacement issue using Fuji X camera serials
« Reply #8 on: June 30, 2018, 12:53:18 PM »
Hi Kirk, Sorry for the delays in replies - we are on UTC+1 here in the UK.
You have indeed fixed the issue. I had been trying different spacings and tabs along even with "wildcard" characters, in the replacement text file.
Thanks very much for all your help, greatly appreciated!