On May 4, 2009, at 6:39 PM, Roger Howard wrote:
if all else fails, you can easily set image rez via Exiftool (from past exchanges with you, I think you may be using exiftool already).
Sure, ExifTool!
set exiftool_path to "/usr/bin/exiftool " set exiftool_args to "-jfif:Xresolution=300 -jfif:Yresolution=300 " set theNewRes to quoted form of POSIX path of theImage do shell script exiftool_path & exiftool_args & theNewRes
On my search I find another direct way to do the operation:
set theNewRes to quoted form of POSIX path of theImage do shell script ("sips -s dpiHeight 300 -s dpiWidth 300 " & theNewRes as string)
Good, now I will test the two solutions...
As an aside, a quick look at the script you posted below raises another (unrelated) issue - you seem to be embedding ICC profiles in images, without actually converting the images to the appropriate color space - as a result, if I'm correct, the 4 versions of images you're generating will not match (color) if you opened them all in Photoshop.
What I see is:
1. You convert a master image to four different sizes 2. You then embed Adobe RGB profile in one size, and sRGB profile in the other three - but without actually converting the color.
Roger, sorry, I don't understand your reasoning... do you refer to the RGB profile? The ColorSyncScripting Dictionary don't have a "convert" command. But looking better I see that this part of the script appears much more like a draft. The four Versions are generated from a Lightroom file (psd, tiff or jpg) and it have already the AdobeRGB profile embedded, but it can be a ProPhoto or a Lab profile too, then I need to be sure that the Master File stored in my database will be an AdobeRGB, it is the Hires image that will be delivered to Clients, it abide another round of lossless compression (because client may wish to edit or crop). Different situation with Display, Web and Thumbnail images which are ready-to-use and only for consideration purpose, then sRGB.
Another problem that I face is a basic sharpening need on the three last versions. The only solution that I have until now is GraphicConverter or ImageMagick.
Thanks for your helpful suggestions,
Leonide Principe
Amazon Stock Photography
PhotoKey Solution Keywording, Tracking and Selling RM Photographs Community Forum
|