I did an image search on the word “random” on DuckDuckGo ( ), then downloaded all the first few hundred images to have a sample library of completely random images. It’s a great little text-processing exercise so I thought I’d share them below. Normally you’ll run these commands on a batch of images from various sources but to be able to provide you information on how these procedures work and on the effectiveness of space reduction, I decided to get a random sample of images from the internet that will hopefully give us an idea how well these procedures are working.
Obtaining sample images, processing some JSON The advantage of using command-line utilities is that they can easily be scripted, automated and customized to your specific requirements as opposed to a GUI-driven application that will always require user interaction to complete.
On macOS, they’re availabe through the Homebrew package manager from by running “brew install jpegoptim”, etc. OptiPNG is a lossless PNG optimizer and it’s able to recompress PNG images to a smaller size.ĭepending on the package manager, they can be installed by running “apt install imagemagick” or “apt install optipng” or “apt install jpegoptim”, respectively.Most Linux distributions include it as a package, available here. JpegOptim is a tool to optimize and recompress JPEG files (both lossy and lossless operation).
The software and its documentation is available here: