Advanced macOS Command-Line Tools
Advanced macOS Command-Line Tools Useful built-in macOS command-line utilities 苹果:为了安全让 M2 吃灰 sips - image manipulation sips -z <height> <width> <image> resizes the specified image, ignoring the previous aspect ratio.
sips -Z <size> <image> resizes the largest side of the specified image, preserving the aspect ratio.
sips -c <height> <width> <image> crops the specified image to the given dimensions (relative to the center of the original image).
sips -r <degrees> <image> rotates the image by the specified degrees.