Importing IPTC keywords into iPhoto

I have >10,000 photos from my research project with imbedded metadata including four keywords. These are in the IPTC field separated by commas.
keyword_1, keyword_2, keyword_3, keyword_4
When I import these into iPhoto I get a single keyword
keyword_1, keyword_2, keyword_3, keyword_4
If I click to edit this keyword, it immediately is broken into four separate keywords plus the original one.
keyword_1, keyword_2, keyword_3, keyword_4
keyword_1
keyword_2
keyword_3
keyword_4
The four individual keywords are what I want but I have to click on the keyword of each photo to achieve this. Extremely time consuming.
Does anyone know if iPhoto can be made to import each keyword individually or a faster way to make iPhoto convert these to the correct format? I do have the ability to edit the IPTC data via terminal scripts so I could modify the original IPTC data if I only knew what iPhoto needs to import properly.
I tried using semicolons to separate the keywords.
i.e. keyword_1; keyword_2; keyword_3; keyword_4
This failed as it just gave me a single keyword that no longer was automatically edited upon clicking.

Hi Phil,
I originally started this on your ExifTool forum. A chap there graciously provided, and helped to refine, a script using ExifTool which has me 95% of the way to my goal.
I'm not a programmer so my understanding of the script is incomplete. It first extracts the data from a csv file and then uses ExifTool to write that data to the jpg files. I copied what I believe to be the relevant sections hoping that maybe someone here could spot the error.
PHYLUM_CSV=`grep ${BASEIMAGE} "${RUBRICFILE}" | cut -d , -f 9`
CLASS_CSV=`grep ${BASEIMAGE} "${RUBRICFILE}" | cut -d , -f 10`
ORDER_CSV=`grep ${BASEIMAGE} "${RUBRICFILE}" | cut -d , -f 11`
FAMILY_CSV=`grep ${BASEIMAGE} "${RUBRICFILE}" | cut -d , -f 12`
KEYWORDS_CSV="1_PHYLUM_${PHYLUM_CSV}, 2_CLASS_${CLASS_CSV}, 3_ORDER_${ORDER_CSV}, 4_FAMILY_${FAMILY_CSV}, 5_GENUS_${GENUS_CSV}, 6_SPECIES_${SPECIES_CSV}"
fi
CAPTION_ABSTRACT_F=`exiftool -s -s -s -caption-abstract "${FILESPEC}"`
KEYWORDS_F=`exiftool -s -s -s -caption-abstract "${FILESPEC}"`
SUBJECT_F=`exiftool -s -s -s -caption-abstract "${FILESPEC}"`
exiftool -m -P -overwrite_original_in_place \
-keywords="${KEYWORDS_CSV}" \
-subject="${KEYWORDS_CSV}" \
"${FILESPEC}"
Here is part of the ExifTool output for one of the files processed with the script. I edited out parts which I thought irrelevant.
bash-3.2$ exiftool -g 0M9I5019.jpg | less -i
---- ExifTool ----
ExifTool Version Number : 8.50
---- File ----
File Name : 0M9I5019.jpg
Directory : .
File Size : 527 kB
File Modification Date/Time : 2003:11:01 20:54:18-05:00
File Permissions : rwx------
File Type : JPEG
MIME Type : image/jpeg
Exif Byte Order : Big-endian (Motorola, MM)
Current IPTC Digest : e6ec6c038fb4c40ebc0252d089a24f1e
---- IPTC ----
Object Name : 0M9I5019, Petrosia (Petrosia) sp. 1895
Keywords : 1_PHYLUM_Porifera, 2_CLASS_Demospongiae, 3_ORDER_Haplosclerida, 4_FAMILY_Petrosiidae, 5_GENUS_Petrosia (Petrosia), 6_SPECIES_sp. 1895
Caption-Abstract : Malaysia, depth 10, depth range 6-10m, wet weight 1168
Application Record Version : 4
---- XMP ----
XMP Toolkit : Image::ExifTool 8.50
Location : 04 20.67N, 113 53.76E
Description : Malaysia, depth 10, depth range 6-10m, wet weight 1168
Subject : 1_PHYLUM_Porifera, 2_CLASS_Demospongiae, 3_ORDER_Haplosclerida, 4_FAMILY_Petrosiidae, 5_GENUS_Petrosia (Petrosia), 6_SPECIES_sp. 1895
Title : 0M9I5019, Petrosia (Petrosia) sp. 1895
The keywords are written into both the IPTC:Keywords and XMP:Subject fields of the metadata. I'm not sure why they are written to both or which field iPhoto imports keywords from.
I added the 1_PHYLUM_, etc tags so that the keywords would sort in the correct order in iPhoto.
Strangely enough, the keywords are imported into Picasa as individual keywords but sort in reverse order.
I'm studying your exiftool faq now.
Thanks,
Paul

Similar Messages

  • Importing Paint Shop Photo Album 4 keywords into iPhoto

    I have many years worth of digital photos organized in folders and marked with Jasc Paint Shop Photo Album 4 keywords. Is there any way to import not just the photos, but the keywords into iPhoto?

    Welcome to the Apple Discussions. Unless there's some way to get JPS to write the keywords into the files I don't know of any way to do what you want. An Applescript might be able to read the JPS dB file and write the keyword to the appropriate IPTC field in the file. But that's beyond my capability.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Can't import any images into iPhoto

    Hello,
    I am on my honeymoon and trying to offload pictures from my camera but have found that I can not import any pictures into iPhoto. I am unable to import any file, not just the ones on my camera. I have tried jpgs, gifs, and pngs from various sources and none of them import.
    So far I have tried holding down option and creating a new library, deleting the plists, rebooting, and reapplying the latest iPhoto update. Does anyone else have suggestions for me to try?

    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • How to Import Spotlight Comments into iPhoto

    Is there a way to import Spotlight Comments into iPhoto at the same time I bring in the image?

    Afraid not. You will need something to convert those comments into standard photo metadata like Exif or IPTC.
    Regards
    TD

  • Cannot import PDF files into iPhoto 4.0.3

    Is it possible to import PDF files into iPhoto 4.0.3? I can't drag and drop them into iphoto folders without the "Unreadable Files" error. I have tried importing them through the iPhoto menu and still get the same results. I have tried importing the PDF files from several places such as my desktop because I wondered if the location of the original made a difference, but that doesn't seem to help. I didn't find anything when I searched for this problem here in the forum so I wondered if anyone else is having the same problems.
    Any help would be appreciated.
    Thanks,
    Morgan

    No because I had iPhoto 4 open and tried to run the Save PDF to iPhoto on a book in that library. I think it's just the different data structure, etc.. It's just not compatible with Automator or at least that particular workflow. I tried printing to PDF from V4 and then do the Save to iPhoto from Preview with V4 open and I still get the error message. So iPhoto 4 is just not compatible with that workflow.
    A workaround is to create a PDF file of the whole book and then manually save each page as a jpg file and import those. That's what I did for my first book. You could do a screen shot of each page in the preview mode and use those but the resolution will be limited to screen resolution, 72dip. You will get resolutions on the order of 150-200 dpi thru the Save As route in Preview or the Save to iPhoto automator method.
    I'm sure you could create an Automator workflow that would take the PDF file and save each page as a jpg file and name it sequentially. I'll have to take a closer look at Automator soon.

  • How to import one photo into iphoto 11

    how to import one photo into iphoto 11 in the exact order i want it?

    How many orders do you need to import one photo?
    Perhaps you need to explain that again
    Regards
    TD

  • Importing PDF files into iPhoto

    I seem to remember being able to import pdf files into iPhoto; now I am unable to.
    When I click on the pdf option in Print, "Save PDF to iPhoto" is one of the options given. If I click it, and try to save pdfs to iPhoto, I get a dialog box asking me to choose which album to import to. Whichever one I choose, I get an Applescript error, "file/private/temp/etc.etc.jpg was not found (-43)" .
    If I create a pdf and drag it to iPhoto, I get an "Unreadable files" dialog box telling me "The following file could to be imported. (The file is in an unrecognized format.)"
    And if I try to import via File––>Import, the pdfs are all greyed out.
    Any suggestions?
    Would upgrading the OS to 10.4.5 or the iPhoto to 6.1 help? I'm temporarily abroad, and don't want to screw up the laptop if I can avoid it.

    luba:
    That's been a bug with the Automator workflow ever since it's been introduced. Be sure to post that fact at the iPhoto feedback page: http://www.apple.com/feedback/iphoto.html.
    I wanted to create a slideshow of a book that I created but had to open each page of the book and do a Save As, picking the jpg format, to be able to do what I wanted.

  • Import Audio Files Into iPhoto

    This is really a 2 part question.
    I have been recording a few sound clips with a small digital pocket recorder that are family stories like "Remeber when Aunt Mildred lost her teeth?" etc. So far the only way I have found to get them into the Mac is as a Quick Time movie. It works. Naturally if there is a better way I'm interested. So the first question is: What are the ways to import small sound clips (Garage Band is my least favorite option).
    On a regular QT movie, I can import them into iPhoto. But iPhoto refuses to import audio only movies. Having these in iPhoto would let me catalog these sound files in iPhoto along with the other photos and other digital camera short movies. So the second question is: How can I import sound clips into iPhoto?
    By the way, setting "Open With" in the information viewer of a file [Command I] to open with iTunes get these clips into iTunes just fine. Why not a movie into iPhoto?
    Has anybody else crossed this bidge before?
    iMac 20"   Mac OS X (10.4.7)   Long Live the Mac!
    iMac 20"   Mac OS X (10.4.7)   Long Live the Mac!
    iMac 20"   Mac OS X (10.4.7)   Long Live the Mac!

    Boris
    There are various apps that might help with working with these sound files. What format does your recorder use. Personally I use Audacity as a sound editor (http://audacity.sourceforge.net/) it's Open Source. For capturing sound that's otherwise difficult to get I use Audio Hijack (http://www.rogueamoeba.com).
    When QT saves the files they are saved as .mov files, and while the Finder calls them QucikTime Movies, they are not, and iPhoto will not import them unless they have a video element. Of course, they import perfectly into iTunes.
    Some suggested solutions:
    Make slide shows of Aunt Mildred, and for a soundtrack use the story of unfortunate teeth, simply by pointing to the relevant track in iTunes.
    Make a movie. If you have quicktime pro it's quite easy and fast to paste some pics of Aunt Mildred to the Soundtrack. It's a little slower - but you have more options - to do it with iMovie or with PhotoToMovie (www.http://www.lqgraphics.com)
    But in any event, it's only by having a movie that iPhoto will wok with the files.
    Regards
    TD

  • IPhoto:  How can I import pdf files into iPhoto?

    It seemed to work before but I can no longer import pdf files into iPhoto.  What heppened and how can fix it?  Many thanks in advance ... Abe

    Have you tried opening the PDF in Preview and printing using the PDF option selecting save PDF to iPhoto?
    LN

  • How is the Raw data used in iPhoto. I currently shoot both jpeg and raw and import them both into iPhoto.

    How is the Raw data used in iPhoto? I currently shoot both jpeg and raw and import them both into iPhoto. What do I gain by collecting Raw data?
    Thanks

    You get more parameters for making adjustments to the image. This is not really an iPhoto question but more a general photography one. In rather simple terms here's how a digital camera works:
    You expose an image. A lot of data is gathered in by the sensor. But it's just a bug lump of data and not very useful in that form.
    In cameras that shoot jpeg that mass of data is interpreted/processed into an actual image, and the image is stored in a jpeg file. (that's a process broadly analogous to developing a film). The decisions that go into making that interpretation are all made by an engineer somewhere, back when the camera was developed.
    If you shoot Raw, then what you do is take that mass of data, and rather than working to the decisions made by that engineer, you develop the shot - you run the digital darkroom.
    Why would you do this? Take on all this extra work? Well one of three reasons: a: you think you can do a better job than that engineer. b: you just prefer the result you get when you develop yourself or c: you're a hopeless shooter and raw means you have more options to fix the mistakes you made in the camera. (That's why I do it.)
    Here endeth the two dollar tour. So, basically, if you're happy with what your camera produces in Jpeg then there's really no need to shoot Raw.
    There's no need at all to shoot Raw+Jpeg as iPhoto creates a jpeg preview when you import, so you're just wasting space.

  • Importing File Structure into iPhoto

    I need help (or perhaps someone could kindly point me in the right direction) importing the file structure I had set up for my photos. Currently, I have my photos filed in an external drive. The structure I have created is, for example, 2008 folder, then under that 2008 folder I have a folder for each month, then in each month I have an events folder (christmas, tree cutting, etc...). This would look something like this: 2008/12/Christmas Day. Is there a way to import this structure into iPhoto?
    Thanks for the help... (if you've made it this far!)!
    -Ann Marie

    Ann Marie:
    Welcome to the Apple Discussions. You can achieve that by using virtual folders, 2007, 2008, etc. and the have smart albums in each of those folder for the months. The criteria for the January smart album would be "Date is the range 01/01/2007 to 01/31/2007".
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Problem with importing scanned photos into iPhoto

    I have an Epson scanner that scans photos into the JPEG format. However, when I try to import these photos into iPhoto I am told that the file format is incompatible with iPhoto. This is odd since photos in iPhoto ARE in JPEG format.
    Can anybody help?
    Many thanks in advance for any assistance.
    Sir Leicester

    Did you scan these photos as grayscale b/w photos? If so that's the reason. iPhoto does not support the grayscale mode when it has the *+Dot Gain 20%+* profile added to it and that's what scanners use.
    Rescan all b/w images as color and they will be accepted by iPhoto. Or you can download the Automator workflow application, Convert to JPG and Embed sRGB profile, from Toad's Cellar and drop the files onto the application. This will batch convert them to jpegs in the RGB mode with the sRGB IEC61966-2.1 color profile.
    OT

  • Import photo edits into iPhoto

    When i take a photo on my iPhone and use editing software, the photo is then saved on my phone with the edits saved.
    However when i import the photos into iPhoto, the edits are not carried through.
    For example if i take a photo on my iPhone and enhance with Camera + and save that photo, when I import into iPhoto, the enhancements do not carry over into my iPhoto album.
    Is there any way to fix this?

    It will change with the new Photos.app, but until then see:  iPhoto and Aperture don't have edits to photos you import from iOS 8 devices - Apple Support

  • I tried to import some photos into iPhoto today and was given a messaged indicating I'm out of room?!  I only have 11,800 pics in my library and have been told iPhoto can hold up to 250,000. Help!

    I tried to import some photos into iPhoto today and was given a messaged indicating I'm out of room?!  I only have 11,800 pics in my library and have been told iPhoto can hold up to 250,000. Help!

    Command (right) - click on your hard drive icon on the Desktop and select Get Info from the contestual menu:
    In the window that comes up will be the amount of available(free) space:
    OT

  • Import iPhone albums into iPhoto

    I'm sorry if this has been asked before, but I haven't seen anything related to this topic :
    I have set up custom albums on my iPhone, is there any way to import those albums into iPhoto? As of now, when I plug my phone in, iPhoto only gives me the option to import my photos from my phone in bulk, but has no information about the individual albums I've set up. Basically, I have a few albums with a couple hundred specific pictures that I needs to get in the computer without having to set them up from scratch in iPhoto. Is this possible?
    Thanks!

    Not really
    You can use PhotoStream and set it up to automatically import - place one album in the PS and then after it imports to the Mac flag the photos and create a new event from them or select them and create a new album form them
    LN

Maybe you are looking for