Batch Resize Images in Mac OS
To resize all the images to maximum height of 640px
To resize SVG files in Mac OS, you can use the rsvg library
install it with:
sips -Z 640 *.jpgTo resize all the images to maximum width of 400px
sips --resampleWidth 400 *.jpg
brew install -v librsvgand then run it with the following shell line:
for i in *; do rsvg-convert $i -w 100 -h 100 -f svg -o `echo new/$i`; doneThis takes all the svg files in the folder, resizes it and copies the result into new/ folder
Comments