Solution for convert image in Panorama X


#1

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 .


#2

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

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


#3

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


#4

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


#5

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


#6

Yep. This is a good page for the basics.

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


#7

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.


#8

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.


#9

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.


#10

Ok, thanks to all.