Skip to content

A command line tools for image compress of JPEG and PNG Using TinyPNG API

License

Notifications You must be signed in to change notification settings

OrzGeeker/OrzTinyPNG

Repository files navigation

OrzTinyPNG

The Command Line Tool For Compress Image of JPG/PNG/WebP Format

There are two editions written by Swift/Python language separately

Installation

The Python Edition Installation

Run command line as follow to install python edition of OrzTinyPNG

python3 -m pip install pip_search && python3 -m pip install OrzTinyPNG

Usage of Python Edition

check the python edition OrzTinyPNG help with running command as follow in terminal:

$ tiny

The Swift Edition Installation on MacOS

  1. Install Homebrew follow guide on the office website: https://brew.sh/

  2. After Install Homebrew successfully. Run Commands as follow in Terminal:

brew tap orzgeeker/core && brew install orztinypng

Usage of Swift Edition

  1. compress an image in-place
$ tiny <image_file_path>
  1. compress an image to other place
$ tiny <input_image_file_path> -o <output_image_file_path>
  1. compress images in a directory recursively in-place
$ tiny <directory_path>
  1. compress images in a directory recursively to other directory
$ tiny <directory_path> -o <dst_directory_path>
  1. compress images in current directory recursively in-place
$ tiny .

How to Write Markdown Documentation

Github-flavored Markdown to write your content.

Choose Your License

Choose a License for your self

References