By using OS X, that is based on Unix you’re already part of the cool crowd. However, if you want to be a real geek designer, you need to be able to manipulate your images from the Terminal. Just learn this and watch the trainees eat from the palm of your hand.
The sips command allows you basic image manipulation, such as resampling, flipping, rotating, cropping. It also lets you view, detach and attach Profiles to an image file. To test the function of this command put a jpg file on your desktop and name it sample.jpg. Now that the sample image is ready for manipulation open Terminal and type:
This will take you to your desktop. You can list the content of your desktop by punching in:
You should be able to find your sample.jpg. Now let’s test the sips command:
sips sample.jpg -z 300 300
This will resize your image to 300 height by 300 width pixels. Check the result in Preview. Another command:
sips sample.jpg -c 100 100
This will crop it to 100×100 pixels. Notice that this way you are overwriting the file. For the complete usage guide type:
I’ve tested it on a hi-res 9MB jpg file and resized it to 100x100px. It was extremely fast, almost took no time to get it done. Now, that I told you about this command, you tell me what can you use it for, besides getting chicks of course?
Commenting on this Blog entry is closed.