Reputation: 36003
I am a segment of my script where I scale down an image from 1200 dpi to 300 dpi.
I am trying to do this:
repeat with i in input
tell application "Image Events"
launch
set my_image to open i
set resolution to {300,300}
set color space to CMYK
save my_image as TIFF
but resolution is read only????
How can I set the new resolution of an image?
Upvotes: 0
Views: 479
Reputation: 207758
I think you'll need to call sips
to set it for you:
do shell script "sips -s dpiHeight 300 -s dpiWidth 300 " & my_image
Upvotes: 1