Re: SIPS - convert color space..
Re: SIPS - convert color space..
- Subject: Re: SIPS - convert color space..
- From: Jeff Jungblut <email@hidden>
- Date: Sun, 26 Aug 2007 11:06:56 -0700
- Thread-topic: SIPS - convert color space..
Title: Re: SIPS - convert color space..
on 8/26/07 9:47 AM, Wayne Melrose at email@hidden wrote:
> Thanks Gary... I think..? .. and I guess what I didn't make clear is I'm
> wondering if I overlooked something in the SIPS man page that might help me
> convert the color space of an image from anything to RGB.
>
> So if you know of another tree I could bark at, that would be great.. Just to
> clarify again. convert any image (tif, png, jpg etc ) to RGB color space,
> preferably jpg format. PREFERABLY not involving third party anything..
>
You use the “match … to destination profile …” in Image Events. Here's a snippet that will convert an image to RGB.
-- origFilePath and rgbFilePath are set elsewhere in the script
tell application "Image Events"
launch
set oFile to open origFilePath
match oFile to destination profile "Generic RGB Profile"
unembed oFile
save oFile as JPEG in rgbFilePath
close oFile
end tell
--
Jeff Jungblut
email@hidden
Senior Graphic Designer & Web Developer
Uptown Publications
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden