I would like a quick/simple way to use SIPS to resize images to the sizes I want.
Currently- I have to do each file one-by-one, including runnings the sips command, then renaming the file and copying it to another directory.
Ideally- I could automate this to work like the following.
In terminal:
sips -Z 500 *.png
rename the FILENAME_500x.png
sips -Z 1000 *.png
rename the FILENAME_1000x.png
sips -Z 1500 *.png
rename the FILENAME_1000x.png
Define this function in your shell:
Then change current directory to where you want to resize images:
Finally invoke resize function like this:
For different
pixelsWHchange the argument:The function resizes all
*.pngfiles in the current folder with the given argument and then appends_pixelWHto the file name.