Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: SIPS - convert color space.. (From: Wayne Melrose <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.