Author Topic: Keywords from JPG to TIF  (Read 4664 times)

Offline Old timer

  • Member
  • **
  • Posts: 55
    • View Profile
Keywords from JPG to TIF
« on: June 02, 2015, 04:01:22 AM »
Hi Kirk, Many thanks for your previous excellent help.

Next question:

When my JPG's are properly keyworded, ... best method to transfer that info onto TIF's? (Same image and file name).

Existing DATA on the TIF's needs to be replaced.

:-)

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Keywords from JPG to TIF
« Reply #1 on: June 02, 2015, 08:12:47 AM »
I can think of two ways to accomplish that, but neither of them are straightforward.

If you know how to do scripting, you could easily do that with ExifTool.

If not, it can be done with Photo Mechanic.

First you would use the Text export template in the Exporter dialog.  You would have it output all selected images into a single file.  Your export text would look like this:

{filenamebase}{tab}{keywords}{nl}

This will produce a file that you would use as a Code Replacement text file.  Once created you would load the file into the Code Replacement dialog.  Then you would create an IPTC Stationery Pad and put this in the Keywords field:

\{filenamebase}\

Apply that IPTC Stationery Pad to your TIFFs and the Keywords should transfer over.  This method can be extended to transfer almost any field over to another image with the same base name.

HTH,

-Kirk

Offline Old timer

  • Member
  • **
  • Posts: 55
    • View Profile
Re: Keywords from JPG to TIF
« Reply #2 on: June 03, 2015, 01:46:48 AM »
Test results:

* Works perfectly with Keywords (but not caption) when file names are identical (as I specified).

* If file names do not match ... junk is written into the keywords field (name of file).

* Caption remains unchanged and needs it's own version of:   \{filenamebase}\       <<<<<<<<

* If   \{filenamebase}\  is used in caption field, keywords are transferred to caption (as well as keywords field).

Solution: Ignore non-matching files.

:-)
« Last Edit: June 03, 2015, 02:02:49 AM by Old timer »

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Keywords from JPG to TIF
« Reply #3 on: June 03, 2015, 09:09:00 AM »
Test results:

* Works perfectly with Keywords (but not caption) when file names are identical (as I specified).

* If file names do not match ... junk is written into the keywords field (name of file).

* Caption remains unchanged and needs it's own version of:   \{filenamebase}\       <<<<<<<<

* If   \{filenamebase}\  is used in caption field, keywords are transferred to caption (as well as keywords field).

Solution: Ignore non-matching files.

:-)

To troubleshoot any of those problems, I'd have to see your Code Replacement text file.  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 file.

Thanks,

-Kirk

Offline Old timer

  • Member
  • **
  • Posts: 55
    • View Profile
Re: Keywords from JPG to TIF
« Reply #4 on: June 03, 2015, 11:06:42 AM »
Hi Kirk, Another test = same result.

Test 1
\{filenamebase}\ in Keywords area of Stationary Pad:

* Same filename = Keywords identical (OK).
* Same filename = Zero Caption (Replace option)
* Random image = Filename written to keywords area \test0001-error-test\

---

Test 2
\{filenamebase}\ in Keywords area of Stationary Pad:
\{filenamebase}\ in Caption area of Stationary Pad:

* Same filename = Keywords identical.
* Same filename = Keywords written to Caption (Replace option)
* Random image = Filename written to keywords + Caption \test0001-error-test\

Exported text attached.


[attachment deleted by admin]

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Keywords from JPG to TIF
« Reply #5 on: June 03, 2015, 02:43:51 PM »
Hi Kirk, Another test = same result.

Test 1
\{filenamebase}\ in Keywords area of Stationary Pad:

* Random image = Filename written to keywords area \test0001-error-test\

---

Test 2
* Random image = Filename written to keywords + Caption \test0001-error-test\

Exported text attached.

You shouldn't be selecting any images that don't have entries in your Code Replacement file.  The behavior you describe is expected.

-Kirk

Offline Old timer

  • Member
  • **
  • Posts: 55
    • View Profile
Re: Keywords from JPG to TIF
« Reply #6 on: June 03, 2015, 07:48:04 PM »
Thanks Kirk.

How about transferring the Caption?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Keywords from JPG to TIF
« Reply #7 on: June 03, 2015, 09:48:34 PM »
As long as the caption doesn't have any newlines in them, they can be transferred with the same method.  If they have multiple lines then Code Replacement won't work for them.

-Kirk