1 example for sips
# Resize image to width 500px, and saving to another file (respecting aspect ratio) sips -Z 500 in.png --out out.png
# Resize image to width 500px, and saving to another file (respecting aspect ratio) sips -Z 500 in.png --out out.png