Padding or filling images with white instead of black?
Al MB, Mac OS X (10.5.5)
Al MB, Mac OS X (10.5.5)
-Z 600
-z 600 400
-c 600 400
-p 600 600
Thanks spazek!
Spazek, thank you so much for this detailed info, I was looking everywhere on how to convert images and retain a white canvas, and I have only found it here. However, I am having an issue. I copied your Applescript into my action, and get an error in the Applescript every time I run the action.
Here is a screenshot of my action: https://files.me.com/jgelfond/giuxuq
From your script I simply modified to make image width to 190 pixels and then pad to 200x200 with a white frame.
Any idea why I would receive an Applescript error on this? Using OS 10.7.1. Thank you!
No img showing there for me.
Clicking on the link will download the image file, which you can then open in your image viewer of choice (at least that's how it works for me in Safari).
You should try just this part of the code:
on run {input, parameters}
repeat with this_file in input
set this_path to the quoted form of the POSIX path of this_file
do shell script "sips " & this_path & " -Z 150 -p 200 200 --padColor FFFFFF -i"
end repeat
return input
end run
THANK YOU! It's working great so far.
..
Padding or filling images with white instead of black?