Image Optimizer CLI client

CLI client for the Image Optimization API

What is ?

Use Image Optimizer for FREE to optimize your pictures file sizes. Improve your performances by using, the 3 billion images API optimizer. Image Optimizer allow to use free Image optimization based on API. provides image size reduction based on several advanced algorithms. The API accept JPG, PNG and GIF files up to 5MB.

What is this tool ?

This tool allow you to perform a powerful optimization of one or multiple pictures using a bash (command line) script based on the API.

Getting Started

This tool can optimize on or several pictures. The recursive option is not yet implemented

  1. Download the tool using a git clone command on your computer/server
  2. Make the file executable using the following command : chmod +x
  3. Run the optimizer by typing command ./ myfile.jpg


This will require to be executed on a Linux based Operating System (Linux or MacOS). The following packages must be installed on the system

Install on your system

If you’re using a Linux system (Debian, CentOS…) you can install after cloning from the GIT repo by typing the following command as root user (or using sudo) :

Your CLI optimizer will be available everywhere in your server/computer by typing resmushit

Usage example

Replace in the examples below resmushit by ./ if you haven’t installed the optimizer globally on your machine.

Optimize a picture and create a new optimized picture file

resmushit mypicture.jpg

The optimized file will be named mypicture-optimized.jpg

Optimize a picture and replace the original file

resmushit mypicture.jpg --preserve-filename

Optimize a picture and set a optimization factor

resmushit -q 92 mypicture.jpg

Optimize multiple pictures and export them into a folder

resmushit --output myexportdirectory/ *

Optimize a picture and preserve its EXIF data

resmushit mypicture.jpg --preserve-exif



All bugs should be reported to :



We use SemVer for versioning. For the versions available, see the tags on this repository.



This project is licensed under the MIT License - see the file for details

Support on Beerpay

Help us by paying us a couple of :beers:!

Beerpay Beerpay


v1.0.8 (build 20190122)

v1.0.7 (build 20181222)

v1.0.6 (build 20181222)

v1.0.5 (build 20180819)

v1.0.4 (build 20180819)

v1.0.3 (build 20180818)

v1.0.2 (build 20180813)

v1.0.1 (build 20180812)

v1.0.0 (build 20180812)