Optimage
Usage
Just choose image files or folders to process in Optimage.
- Drag and drop files or folders onto the main window.
- Click Open… button in the main window.
- Go to File > Open… in the main menu.
- Drop files or folders onto Optimage icon in the Dock.
- Select files or folders in Finder and choose Optimage from Services in the context menu.
Preferences
- Lossy optimizations – perform visually lossless optimizations for much smaller output. It is not recommended to do it on original images as you may need to edit them in the future.
- Strip ICC color profiles – strip any information about color space from images leaving color values intact.
- Convert to sRGB – convert images from original color space to sRGB color space. Untagged images are assumed to be in sRGB color space.
- Strip metadata – strip excessive metadata from images including Exif, XMP, IPTC, DPI, and comments. Some critical auxiliary tags are preserved e.g. 9-patch and APNG data.
- Destination – choose destination folder for optimized files.
- Prefix and Suffix – specify a relative subfolder and/or filename prefix/suffix for optimized files. Use
../
to go one level up.
- Keep originals in Trash – move original files found at destination to Trash.
- Preserve timestamp – preserve timestamp (modification time) on optimized files.
- Exit on completion – exit app when optimization is complete.
Command line usage
You may run Optimage in interactive mode from command line by running the following command in Terminal.
open -a Optimage.app image-file …
or
/Applications/Optimage.app/Contents/MacOS/Optimage image-file …
There is also a CLI client in the package. If you installed Optimage to the default folder, it's located under /Applications/Optimage.app/Contents/MacOS/cli/optimage. You can create a soft link for faster access.
ln -s /path/to/cli/optimage /usr/local/bin
Usage examples:
Run lossy optimizations on a set of images.
optimage --lossy --srgb --strip-meta -v -- image-file …
Run lossy optimizations in parallel on all images in the folder.
find -E /path/to/image/folder -type f -iregex '.*\.(png|jpe?g)' -print0 | xargs -0 -I {} -P 8 optimage --lossy --srgb --strip-meta -v -- {}
or
find /path/to/image/folder -type f \( -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' \) -print0 | xargs -0 -I {} -P 8 optimage --lossy --srgb --strip-meta -v -- {}
Run optimage -h
to get help. At present CLI supports only PNG and JPEG.