$ man sips NAME sips -- scriptable image processing system.
DESCRIPTION This tool is used to query or modify raster image files and ColorSync ICC profiles. Its functionality can also be used through the "Image Events" AppleScript suite.
sips 是一个可脚本化的图片执行系统,通常可用于查询或修改图片文件
1 2 3 4
-z pixelsH pixelsW --resampleHeightWidth pixelsH pixelsW Resample image at specified size. Image apsect ratio may be altered.
for (( i = 0; i < num; i++ )); do cache_img=${scale_config[i]} cp logo.png ${cache_img} i=$((${i}+1)) sips -Z ${scale_config[i]}x${scale_config[i]}${cache_img} done