Easy steps to install trimage package on Mac
Package Information:
Application Name – trimage
What is trimage – sudo apt-get install trimage. Arch Linux. Trimage is available from AUR, to install, type: yaourt -S trimage. macOS.
Use of trimage – Cross-platform tool for optimizing PNG and JPG files
URL – https://trimage.org
Installation Steps:
- Open Terminal using Spotlight search by pressing  <command+space>. Type terminal and hitEnterkey.
- Now, run following command to install homebrew (brew)
- Install trimage using brew
brew install trimage 

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

trimage is ready to use now!