Converting TIFF to JPEG with sips, then import into iPhoto problems
do shell script ("sips -s format jpeg -s formatOptions low -s description " & "'" & "Original path: " & (POSIX path of an_image) & "'" & space & (POSIX path of an_image) & " --out " & new_file)
where an_image is the source file, and new_file is the path and name of the converted image.
This way, I can save the original file path as the image's description while shrinking the file size to speed up later importing into iPhoto. As part of the iPhoto import, that description from the metadata is placed in the on screen comment section for each image.
This works fine to do the initial shrinking, but less than half of the resulting jpeg files can subsequently be imported into iPhoto. I get this error:
The following file could not be imported. (The file is in an unrecognizable format.)
And yet, Preview and Safari both open the files with no problems.
Is there anything else I need to set when doing the conversion with sips to make it easier for iPhoto to recognize the converted files?
I have over 1000 images, and anticipate a final total of about 2500 when I am done. These are images of myself and my siblings from the 1960s and 1970s, and my idea is to scan them all at high resolution, and use the converted, smaller files for iPhoto for keywording and Faces to get them organized, while retaining the paths to the original images. Any commentary is appreciated.
MacBook, Mac OS X (10.5.6)