Changing resolution of an image

Hi,

on apples “scriptable application” website there is the following script:

set this_file to choose file
try
tell application “Image Events”
launch
– open the image file
set this_image to open this_file
– extract the property value
copy the resolution of this_image to {xres, yres}
– purge the open image data
close this_image
end tell
display dialog "Resolution: " & (xres as string)
on error error_message
display dialog error_message
end try

I asked myself if the part with the image resolution is reversible.
like “set image resolution to {xres,yres}”

Are there any other ways to change the resolution of an image?

Thanks in advance
greetings
nils

The resolution property is read-only (you can find info about properties by looking in the application’s dictionary).

There is a OSAX for changing resolution. See:

http://www.azug.gr.jp/~h-abe/freeware/index.en.html

Thanks a lot !

That was exactly what I wanted to know…

greetings
nils