You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to change 'Pad Images' from black to white in Automator in Mac OS

HI There


I want to run an automation to scale mulitple images to 400 px square and have a WHITE background NOT black


have tried the most common answer and various versions of the below script:


Add in a 'run apple script' and changed the sizing to suit e.g 400 px


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 & " -p 50 50 --padColor FFFFFF -i"
end repeat
return input
end run


nothing is working and I am m runing out of options and been through all the help forums online.


I've swapped the order of padding and apple script over too and that does not work


below is the current screenshot of what i have


iMac 27″ 5K, macOS 12.3

Posted on Mar 20, 2022 4:29 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 31, 2022 8:58 PM

After much googling for hours and not much help from apple, I had to engage and skilled applescript writer from Upwork. It took him half an hour to write it.


This may save someone from painstakingly trying to find the same answer.


Similar questions

1 reply

How to change 'Pad Images' from black to white in Automator in Mac OS

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.