From 8c8f832abb7406255ce03bc776bf07891d08c3e2 Mon Sep 17 00:00:00 2001 From: Martin Juul <11337105+martin-juul@users.noreply.github.com> Date: Fri, 23 Mar 2018 09:52:50 +0100 Subject: [PATCH] sips: add page (#2033) --- pages/osx/sips.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/osx/sips.md diff --git a/pages/osx/sips.md b/pages/osx/sips.md new file mode 100644 index 000000000..7a883e033 --- /dev/null +++ b/pages/osx/sips.md @@ -0,0 +1,28 @@ +# sips + +> Apple Scriptable Image Processing System. +> Raster/Query images and ColorSync ICC Profiles. + +- Specify an output directory so that originals do not get modified: + +`sips --out {{path/to/out_dir}}` + +- Resample image at specified size, Image aspect ratio may be altered: + +`sips -z {{1920}} {{300}} {{image.ext}}` + +- Resample image so height and width aren't greater than specified size (notice the capital Z): + +`sips -Z {{1920}} {{300}} {{image.ext}}` + +- Resample all images in a folder to fit a width of 960px (honoring aspect ratio): + +`sips --resampleWidth {{960}} {{path/to/images}}` + +- Convert an image from CMYK to RGB: + +`sips --matchTo '/System/Library/ColorSync/Profiles/Generic RGB Profile.icc' {{path/to/image.ext}} {{path/to/out_dir}}` + +- Remove ColorSync ICC profile from an image: + +`sips -d profile --deleteColorManagementProperties {{path/to/image.ext}}`