Solution for convert image in Panorama X

Convertimage does not work in Panorama X to resize images. Does anybody know a different method to do this:

convert image "input, "output, “”, 0,0 .

In Library>Scripts>Script Editor>Image Manipulation, check out Resize.scpt

It requires modification but I’ve used it in the past

Thanks Jim, but I’d prefer not to have to use an Apple Script.

I’m afraid that there aren’t going to be any methods that do not involve Apple Script.

I believe you can use the Unix sips command to resize images.

Yep. This is a good page for the basics.

https://robservatory.com/use-sips-to-quickly-easily-and-freely-convert-image-files/

1 Like

Thanks Gary and Robert. This looks interesting but can I integrate it with a Panorama procedure? When I look at executeunix or shellscript, it seems to want to return a result. I just want it to take the dimensions from an imagedimensions( function and convert the image in a folder.

Not every unix command returns a result such as in the case of using sips to change the image size. Obviously you could use a unix command to move a file or rename it and no result would be returned in that case either.

Yes, ANY shell command can be used in a Panorama procedure.

When I look at executeunix or shellscript, it seems to want to return a result.

The result is the command line output from the script. This is the output you would see on the screen if you ran that command in the terminal. If you don’t care what the output is, just ignore it.

Ok, thanks to all.