I just can't figure this out. I've found a lot of stuff online about batch converting with sips and automator, but I just can't get any of it to work. I also don't want to batch convert.
Here's what I'm trying to do:
right-click on an image
select a resize service
resize image to 450px wide, 72dpi (usually from 300dpi), and set a jpg quality to 80
So I created a new service. The first step is to Copy Finder Item and put it on the desktop.
From there, I want to Run Shell Script. Right? I just can't get a script to work using sips (or anything else that will do it).
Anyone have an idea how to do this? I tried some short tests. Did this one (that I found online):
Nothing. Didn't change the resolution. I've tried others that resize the file and set a compression level, but I can't get them to work. Any thoughts, or a script I can trigger with Automator?
Here's what I'm trying to do:
right-click on an image
select a resize service
resize image to 450px wide, 72dpi (usually from 300dpi), and set a jpg quality to 80
So I created a new service. The first step is to Copy Finder Item and put it on the desktop.
From there, I want to Run Shell Script. Right? I just can't get a script to work using sips (or anything else that will do it).
Anyone have an idea how to do this? I tried some short tests. Did this one (that I found online):
Code:
#bin/bash
for f in "$@"
do
/usr/bin/sips -s dpiHeight 72.0 -s dpiWidth 72.0 $f
done
Nothing. Didn't change the resolution. I've tried others that resize the file and set a compression level, but I can't get them to work. Any thoughts, or a script I can trigger with Automator?