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

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.