Author Topic: Add keywords to PNG OSX  (Read 3039 times)

mcquiff

  • Jr. Member
  • **
  • Posts: 27
Add keywords to PNG OSX
« on: December 05, 2013, 08:08:30 AM »
Not sure where I am going wrong this is what I am using

/usr/bin/exiftool -P  -overwrite_original_in_place -keywords+='Green Fabric And Drop Necklace' -headline='BH70SC00003GN7FB' -source='' '/Volumes/Image/2012-2013/WK2/BH/BH_WK2_PSD/BH70SC00003GN7FB.png'

Not sure why the data isn't showing.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16902
    • ExifTool Home Page
Re: Add keywords to PNG OSX
« Reply #1 on: December 05, 2013, 08:26:22 AM »
"Showing" where?  What is the output of this command?:

/usr/bin/exiftool -G -keywords -headline '/Volumes/Image/2012-2013/WK2/BH/BH_WK2_PSD/BH70SC00003GN7FB.png'

I suspect this is FAQ 3.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mcquiff

  • Jr. Member
  • **
  • Posts: 27
Re: Add keywords to PNG OSX
« Reply #2 on: December 05, 2013, 09:18:37 AM »
Hmm

I had a little bit of luck,

/usr/bin/exiftool -a -overwrite_original_in_place -subject+='Vintage Ring Pack ' -subject='DV25RI02768MU1GO' -subject='' '/Volumes/Image/2012-2013/WK1/DIVA/DIVA_WK1_PSD/DV25RI02768MU1GO.png'


The result show this
XMP Toolkit                     : Image::ExifTool 9.41
Subject                         : V shape gold and stone ring
Image Size                      : 1157x980

When I open in Preview or Photoshop (or search with spotlight) the keywords don't show?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16902
    • ExifTool Home Page
Re: Add keywords to PNG OSX
« Reply #3 on: December 05, 2013, 09:22:07 AM »
Now we're talking about a different problem.

This is a known problem in the Adobe and Apple utilities.  Add -api PNGEarlyXMP (case sensitive) to your command to write something that these dumb utilities can deal with.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mcquiff

  • Jr. Member
  • **
  • Posts: 27
Re: Add keywords to PNG OSX
« Reply #4 on: December 05, 2013, 09:30:02 AM »
I started to read that but I just didn't understand it. Tried it now and I can see in photoshop, it shows in description > keywords.

Not sure why but photoshop isn't finding it. Should I be placing it in a different metadata title?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16902
    • ExifTool Home Page
Re: Add keywords to PNG OSX
« Reply #5 on: December 05, 2013, 09:32:24 AM »
No, this is correct.

You should submit bug reports to Adobe and Apple because they should be able to read the XMP in the default location written by ExifTool.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mcquiff

  • Jr. Member
  • **
  • Posts: 27
Re: Add keywords to PNG OSX
« Reply #6 on: December 05, 2013, 10:00:41 AM »
Indeed this does sound like a bug, just did a few test.

So this is what I enter on terminal

Code: [Select]
exiftool -a -overwrite_original_in_place -subject='2-in-1 brooch & necklace' /Volumes/Image/2012-2013/WK1/Freedom/Freedom_WK1_PSD/FR10NW11894BK1GO.png

OPEN IN PREVIEW,  PRESS CMD I  TO REVEAL THE KEYWORDS, AND NOTHING

Now enter a keyword for example "test" and save the file
Run the same text open and it shows the keywords added underneath the line test.

Remove all keywords save again, run the terminal and nothing again

With the

-api PNGEarlyXMP

added the same occurs

I'm on mavericks, (quite a few little bugs in it at the moment)

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16902
    • ExifTool Home Page
Re: Add keywords to PNG OSX
« Reply #7 on: December 05, 2013, 10:15:09 AM »
I am surprised.  If you used the PNGEarlyXMP option in ExifTool, you should see the keywords (if written as XMP Subject) in Preview.  I know this works for OS X 10.8.5, and I thought it was the same for 10.9 (although I can't verify this right now).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mcquiff

  • Jr. Member
  • **
  • Posts: 27
Re: Add keywords to PNG OSX
« Reply #8 on: December 05, 2013, 10:32:46 AM »
Fingers crossed spotlight now searching

replaced

subject
 with

-XMP:subject

Many Thanks

Matt

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16902
    • ExifTool Home Page
Re: Add keywords to PNG OSX
« Reply #9 on: December 05, 2013, 11:09:51 AM »
Hi Matt,

Writing Subject with ExifTool is the same as XMP:Subject.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).