Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Lossless "export" of images with embedded metadata?

After over 20 years on the Mac platform, I have made the difficult decision to switch to Windows for a number of reasons. One issue is migrating my photos and videos out of iPhoto '11 for import into a Windows-compatible photo management program, like Picasa.


I have old photos on which I painstakingly added dates. I chose "Modify original files" when I did that, so I think all of the date metadata should transfer fine. However, I have also painstakingly added "Assign a place" information (including both coordinates and place names), "Add a description" information, and "Keywords". I believe that iPhoto stores all of those pieces of information in a separate iPhoto database that does not travel with the original photo files.


I have discovered the abilty to "Export" the photos with the options of exporting "Title and keywords" and "Location information", and that appears to store at least some of the additional metadata in the final file. However, I have a couple of questions:


1. The most important question is related to maintaining the integrity of the original photo file. By my observation, the only way to get the additional metadata in the final file is to export the photos, but by doing that, iPhoto is re-saving the JPEG in a file that is (by definition) lower quality than the original but which has a size that is 2x to 4x larger than the original. Is there any way to have iPhoto or Aperture or some third-party program write the additional iPhoto metadata directly to the original photo file so that it does not have to undergo another round of lossy re-saving? Alternatively, is there a better way to migrate this data?


2. When iPhoto is exporting the "Title and keywords", does "Title" actually mean the "Add a description" text or the album title or some other title information? When iPhoto is exporting "Location information", does that actually mean the "Assign a place" information, and does it include only the GPS coordinates, or does it also include the place names assigned to the GPS coordinates? It would be nice if iPhoto used the same terminology throughout.

iMac (20-inch Mid 2007), Mac OS X (10.6.8)

Posted on Nov 21, 2013 9:21 PM

Reply
Question marked as Best reply

Posted on Nov 21, 2013 9:31 PM

for photos you will have to export to capture the changes made using iPhoto - yes this does create a new JPEG and in theory that does cause some reduction in quality - but ther is not real way around it and the loss is trivial - you could export a TIFF and keep full quality at a giant cost in space usage


For video you must export as kind is original - any other export gives you only the JPEG priview of the first frame


Title is the iPhoto title (and includes othr fields too) - place is the Lat/Long of the location


You can use an EXIF viewer like simple EXIF viewer - or Preview to view the metadata the is exported so you can see for yourself what is there and how it is recorded


LN

36 replies
Question marked as Best reply

Nov 21, 2013 9:31 PM in response to splinke

for photos you will have to export to capture the changes made using iPhoto - yes this does create a new JPEG and in theory that does cause some reduction in quality - but ther is not real way around it and the loss is trivial - you could export a TIFF and keep full quality at a giant cost in space usage


For video you must export as kind is original - any other export gives you only the JPEG priview of the first frame


Title is the iPhoto title (and includes othr fields too) - place is the Lat/Long of the location


You can use an EXIF viewer like simple EXIF viewer - or Preview to view the metadata the is exported so you can see for yourself what is there and how it is recorded


LN

Nov 21, 2013 9:41 PM in response to LarryHN

Thanks for the rapid reply, LN. I guess this confirms my fear. I tested the export on a number of photos, and not only are the files being re-compressed, but the file sizes are also increasing by 2x to 4x. I will acknowledge that it will probably be difficult for me to see the lowered quality, and that file sizes are not such a big deal in the new era of relatively inexpensive storage, although quadrupling the size of 20,000+ photos can have an impact.


However, it just seems like there must be a method to simply embed the new metadata into the original file, rather than this clunky kludge from a company that prides itself on elegance. Sarcasm aside, I thought I remembered seeing a third-party program that could do this at some point a few years ago, and I was hoping somebody would know where to find it.

Nov 21, 2013 10:34 PM in response to splinke

You can learn about exporting here


This User Tip


https://discussions.apple.com/docs/DOC-4921


has details of the options in the Export dialogue.


1. You can export the Original file. That gets exactly what it says - the original file, no added metadata.


2. With Aperture you can export the Original plus added metadata. Pay more get more options.


3. When you export with iPhoto to Jpeg, Tiff or PNG the original file is not "recompressed". It's a whole new file. The image is put into a new file that has a rather different compression ratio than that created by your camera. That's why you can actually export at a higher jpeg quality than you imported at (and hence a larger file size). The image won't be higher quality, of course, but the file will.


4. The Title is the title - by default iPhoto uses the filename as a title, but you can change it. Title is an entry in the metadata, filename is a filename in the Finder. The description is the caption field in the metadata, keywords are keywords.


5. It's the GPS co-ordinates.

Nov 22, 2013 4:33 AM in response to splinke

There are two other third-party tools that I re-discovered, which were able to embed the metadata in the original files: Phoshare and iPhoto to Disk. I think they are a bit more user-friendly than ExifTool (not all command line stuff). However, it came as no surprise to me that, in the most recent versions of iPhoto, Apple has apparently eliminated sharing of metadata with third-party applications, so the developers of those programs have abandoned them. I have faithfully (like a lemming or sheep, I guess) "upgraded" my iPhoto libraries whenever the dialog box comes up. Now I have learned that the above-described tools will no longer work on my libraries.


This is one of the prime reasons I have decided to switch to Windows after 20+ years on the Mac. Apple's OS and software updates over the past few years always mention the rather insignificant improvements they introduce, but they always fail to reveal all the functionality that is removed. The removal of Sync Services from Mavericks was the last straw for me, but there have been a series of other dumbing downs of their software and/or introductions of incompatibilities. Ironically, Apple seems to support and maintain the compatibilty of their software that runs on PCs better than their stuff on the Macs!


Over the past year, I have had substantial instability with Safari and Firefox. Constant pinwheels, gobbling up GBs and GBs of real and virtual memory, and incessant hard drive access. Five open windows in Safari using 1 GB of real memory and 3 GB of virtual memory...seriously? All of that combined with the fact that Macs are so expensive means it's time to move on. Sadly, my work PC is vastly easier to deal with and less expensive than my home Mac, which was not the case in the past. Sorry for the rant, but I want to run, not walk, away from Apple at this point, and I just need to figure out the last few methods necessary to escape their closed ecosystem.


<Link Edited By Host>

Nov 22, 2013 2:09 AM in response to splinke

In Aperture: File -> Export-> Originals and then on the export pane you can choose to include the IPTC (which will contain all the added metadata), don't include it or export it to a sidecar file.


If this is one of the prime reasons why you'e migrating to Windows then one of your prime reasons is wrong. You misunderstand how exporting works in iPhoto, in that files are not "recompressed", and this notion that Apple has "eliminated sharing of metadata with third-party applications," is also wrong. Have a look at 3rd party applications like iPhoto Library Manager. It can access every bit of metadata in the LIbrary. I suspect that both the app you mention are no longer developed because their primary function - to export into a folder tree matching your events - was rolled in the Export dialogue. So, you don't need them.

Nov 22, 2013 10:55 AM in response to Yer_Man

Thanks for the follow-up Terence. Unfortunately, while the Aperture "File>Export>Original>Include IPTC" approach does add the caption/description information to the exported file, it does not seem to add the location (geographical coordinates or place name). From what I can figure out, iPhoto stores in its separate database both the coordinates and the place name I have assigned to each photo. Aperture is aware of the coordinates (found under Info>GPS), but, correct me if I am wrong, it does not seem to be aware of the place name! In any case, it seems that Aperture does not consider any of the location data manually entered into iPhoto to be IPTC-based metadata worthy of export! UNACCEPTABLE, APPLE!


My use of the term "recompressed" was simply meant to convey that the metadata was not simply being appended to the original compressed JPEG image file, and that in order to include the metadata directly in the iamge file, iPhoto insists on modifying the actual image. Correct me if I am wrong, but, when the original photo is taken, information is lost during the lossy JPEG compression routine carried out by the camera. Then, when iPhoto exports the photo with the metadata, it presumably transiently decompresses the JPEG, and then applies its own lossy JPEG compression routine, so more image information is lost (what I am calling "recompresed"). Based on some preliminary testing, iPhoto is converting my original ~2.5 MB files from my 8 megapixel camera into 6.3 to 6.9 MB files that, by definition, have less accurate image information than the original. TRULY PATHETIC!


With regard to the third-party applications, one of their primary goals was to do just what I want--add metadata to the original file without modifying the image itself. And statements by the developers indicate they stopped developing, because Apple was making changes that made it impossible for them. The following is from the Phoshare developer:

In October 2012, I made the difficult decision to no longer actively develop Phoshare. The limitations introduced by iPhoto 9.4 no longer make it a very attractive tool...Phoshare had a good run, but it has gotten to the point where it is becoming increasingly challenging to keep up with new versions of iPhoto and Aperture. With iPhoto 9.4, the amount of data shared with other applications has been greatly reduced, and some features have already been lost...Keywords are completely gone. That is a big loss for Phoshare with iPhoto because iPhoto itself has no options to save metadata into the image files...The information is still there, but only in the internal iPhoto/Aperture database. No API or documentation to these database tables are provided by Apple...I have transitioned my own photo library form iPhoto/Aperture to Adobe Lightroom some time ago, and no longer use Phoshare myself. Adobe Lightroom can be configured to save all your work into the image files automatically, so you don't even need a tool like Phoshare to liberate your work.


And the following is from the iPhoto to Disk developer:

In the latest iPhoto versions, Apple prevents third party apps from accessing keywords. Consequently, iPhoto To Disk is not able to export keywords anymore...The unified library format shared between iPhoto and Aperture is not supported.


I stupidly clicked "OK" when I was asked to update my iPhoto library to the unified format.

Nov 22, 2013 12:22 PM in response to splinke

You misunderstand how exporting works in iPhoto, in that files are not "recompressed", and this notion that Apple has "eliminated sharing of metadata with third-party applications," is also wrong. Have a look at 3rd party applications like iPhoto Library Manager. It can access every bit of metadata in the LIbrary.

Nov 22, 2013 1:03 PM in response to Yer_Man

Well, I can't rule out the possibility that the developer of iPhoto LIbrary Manager may be more resourceful than the other two developers at accessing all of the iPhoto metadata. I was just going by what the other two developers stated as their reasons for abandoning development of their tools. I would be happy to use iPhoto Library Manager to solve my problem, but it appears that it will not work. It seems to be able to transfer photos and associated metadata between iPhoto libraries, but it seems only to handle the metadata through the separate iPhoto database file--not by embedding it in a file with the unmodified JPEG.


OK, you don't like the simple term "recompressed" to describe what iPhoto is doing when I export, and the file size changes from 2.5 MB to 6.9 MB.I think this is a purely semantic argument. What term would you use? Would you acknowledge that iPhoto is compressing the images with its own JPEG algorithm, and that it is doing that on a file that was originally compressed by the camera's JPEG algorithm? Would you acknowledged that, if I repeatedly exported the same file from iPhoto that it would gradually reduce in quality the larger the number of iterations? Then, would you acknowledge that the initial exported file, despite being 2.8x larger than the original, is of lower quality than the original? The bottom line is that I don't want to almost triple storage requirement, the streaming bandwidth, etc. of my photo library for no good reason.


There are a number of programs that can embed additional metadata into files that do not modify the original JPEG (e.g., ExifTool). However, with 20,000+ photos, I can't do them one-by-one. I need an automated method. Your suggestion of using the Aperture>Export>Include IPTC data, while a good suggestion, does not seem to do what one might expect. Inexplicably, the GPS data does not seem to get exported with the file. I have no beef with you...I just want to solve my problem, and I would be very grateful if your expertise in the area could help. Thanks.

Nov 22, 2013 3:24 PM in response to LarryHN

I have done a bunch of additional testing, looking at various pieces of metadata and how they are handled by iPhoto and Aperture and the various export options. It seems to be an odd mix of idiosyncrasies.


Metadata manually entered into iPhoto that I wish to export:

  • Date and time
  • Title
  • Description
  • Keywords
  • Place name
  • Place GPS coordinates


Three ways to export the file along with newly embedded metadata, plus a special case where only the metadata is exported:

  • iPhoto: Export > File Export > JPEG, Title and keywords/Location information both checked (changes images)
  • Aperture: Export > Versions > Original Size (changes images)
  • Aperture: Export > Original > Include IPTC data (typically does not change images)
  • Aperture (special case): Export > Metadata (does not change images)


Date and time


For the older photos on which I had to manually enter date and time information through the "Adjust Date and Time" menu item, I always selected the "Modify original files" checkbox. I believe this caused iPhoto to directly write the information to the EXIF portion of the original image file without modifying the image itself, so it travels with the file automatically no matter how the export is done. If iPhoto did this for the other metadata, rather than only storing it in a separate database file, then I would not have this problem, but alas, it does not.


Place name


None of the export options seem to enable export of place names, so it seems I will lose the 50 or so names I have entered no matter what I do, although there may be a way to link photos to the same location in the Windows program based on their having identical GPS coordinates.


Aperture Original export


Aperture Original export does not seem to alter some images, and it can embed Description and Keywords as IPTC fields. However, it substantially changed the size of some of my images (far more than could be accounted for by adding a tiny bit of metadata), so I am not sure it is really leaving all images untouched. More importantly, it does not seem to embed Title or GPS information. So, it seems like the most useless option.


Aperture Versions export


The Aperture Versions export, unlike the Aperture Original export, does include the GPS information, but, like Aperture Original export, it does not include the Title. And, like iPhoto export, Aperture Versions export modifies the original image, albeit with much lower inflation in file size. This also seems like a relatively useless option.


iPhoto export


iPhoto export includes all of the relevant metadata types (Title, Description, Keywords, and GPS). However, it alters the images by compressing them again and substantially increases the file size when Maximum quality is selected. Stepping down to High quality is closer to the original file size. This is better than the useless Aperture options, but it is the lowest option, as it seems silly to have to re-make 20,000+ JPEGs rather than just changing the metadata portion of the files.


Aperture Metadata export


The Aperture Metadata-only export is intriguing. Like iPhoto export, it includes all of the relevant metadata types (Title, Description, Keywords, and GPS), even though neither of the other Aperture exports seem to support all four (Versions lacks Titles, and Original lacks both GPS and Titles).


Best potential solutions


The Aperture Metadata approach seems like the best bet. The key is getting that data embedded into the original data files. I am hoping that ExifTool can handle the metadata files and batch modify the originals.


The other alternative, as suggested to me by the ExifTool developer, is to do the iPhoto export, then use ExifTool to extract the new metadata from those files and modify the originals. I just have to figure out if/how this will all work, and I will have liberated myself from the iPhoto quagmire.


Some other things I discovered that may be useful to others also wishing to liberate themselves from the iPhoto quagmire, and perhaps Apple in general:

  • The Aperture Versions export actually saves the iPhoto Description separately in two metadata locations--IPTC>Caption-Abstract and EXIF ID0>Image Title/Description. iPhoto and Aperture Original leave the EXIF ID0>Image Title/Description as the default camera value, which, in my case, is the manufacturer name. Aperture Metadata saves it as "Caption".
  • iPhoto saves the iPhoto Title as IPTC>Object Name, and Aperture Metadata saves it as "Version Name".
  • All three export options save iPhoto Keywords as IPTC>Keywords, and Aperture Metadata saves them under "Keywords".
  • The GPS coordinates are exported as EXIF GPS IFD by both the iPhoto and Aperture Versions export (stored in four separate fields: North or South Latitude, Latitude, East or West Longitude, Longitude). The Aperture Metadata-only export includes just two fields (Latitude and Longitude) with the hemisphere information appended to the end of the coordinates.

Nov 22, 2013 3:48 PM in response to splinke

There are so many variables in Aperture - presents you can create of formats for jpeg export, tiff export, png export, with some, a little, a lot or all metadata - that the Aperture manual has an entire Chapter on the topicl. Suffice it to say your summary, above, is incomplete.


On exporting from iPhoto:


You can't "recompress" a file that has never been compressed. That's the key dfference. You seem quite unable to distinguish between a file and the photo it contains.


The photo is copied to a new file...


If you have not edited the image then exporting as Jpeg in any of the higher quality settings will get you the same image in a less compressed file, with the metadata.


I'll repeat that for you:


The same image, same dimensions, same quality, in a less compressed file.


One more go: the same photo in a different sized box.


iPhoto allows you to export an image into a file that is better quality than your camera does. The same image in a different file.


If you have edited the image - no matter how extensively - you will be no more than a single generation in quality from the Original. The difference is negligible. Unless you're planning a lot more editing in a lossy workflow when you get to Windows, it really doesn't matter.


I really have no interest in arguing with you. You're more interested in making a (inaccurate) point than solving your problem. My only reason for making this post is for the benefit of others who may read this thread later.


Last words from me.

Lossless "export" of images with embedded metadata?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.