2017 © Pedro Peláez
 

project image-optimizer

Image optimization and compression tool for the console. This tool optimizes PNG, JPEG and GIF files, using 'gifsicle', 'jpegoptim', 'jpegtran', 'pngcrush' and 'pngout' and can usually reduce the filesize by 10% to 70%.

image

jonathanmaron/image-optimizer

Image optimization and compression tool for the console. This tool optimizes PNG, JPEG and GIF files, using 'gifsicle', 'jpegoptim', 'jpegtran', 'pngcrush' and 'pngout' and can usually reduce the filesize by 10% to 70%.

  • Wednesday, June 20, 2018
  • by jonathanmaron
  • Repository
  • 1 Watchers
  • 1 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

Image Optimizer

Image optimization and compression tool for the console. This tool optimizes PNG, JPEG and GIF files, using gifsicle, jpegoptim, jpegtran, pngcrush and pngout and can usually reduce the filesize by 10% to 70%., (*1)

As optimzing images is CPU intensive and it may take several minutes for a larger PNG file, image-optimizer keeps track of which image files it has optimized. Each image file will only be optimize once, unless the --force flag is set., (*2)

image-optimizer is intended to be run unattended in a cronjob., (*3)

Example Usage

Optimize Images In /path/to/images

image-optimizer --path="/path/to/images"

Optimize Images In /path/to/images, Ignoring History

image-optimizer --path="/path/to/images" --force

Set All Images In /path/to/images As Optimized

image-optimizer --path="/path/to/images" --index-only

Installation

Installation is via composer:, (*4)

cd ~/install-path

composer create-project jonathanmaron/image-optimizer

It is recommended to include ~/bin in your PATH variable:, (*5)

PATH=$PATH:~/install-path/image-optimizer/bin

so that image-optimizer is available to the logged in user globally., (*6)

Upgrading From v1 and v2

Between v1 and v3, the structure of the history directory was updated. Therefore, please remove your current history directory. A new one, with the new structure, will be created when image-optimizer is executed for the first time:, (*7)

rm -fr ~/.image_optimizer

Dependencies

image-optimizer depends upon gifsicle, jpegoptim, jpegtran, pngcrush and pngout to perform its work. These tools must be installed, otherwise image-optimizer will return an error., (*8)

Download and install pngout at:, (*9)

http://static.jonof.id.au/dl/kenutils/pngout-20150319-linux-static.tar.gz (or newer)

then unpack, then copy to:, (*10)

/usr/bin/pngout

Download and install other dependencies:, (*11)

apt install pngcrush libjpeg-progs jpegoptim gifsicle

The Versions

20/06 2018

dev-master

9999999-dev https://github.com/jonathanmaron/image-optimizer

Image optimization and compression tool for the console. This tool optimizes PNG, JPEG and GIF files, using 'gifsicle', 'jpegoptim', 'jpegtran', 'pngcrush' and 'pngout' and can usually reduce the filesize by 10% to 70%.

  Sources   Download

Apache-2.0 BSD-3-Clause

The Requires

 

The Development Requires

image optimization compression jpegoptim image optimizer gifsicle pngcrush pngout jpegtran

30/05 2018

dev-version-2.0

dev-version-2.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

30/05 2018

2.0.0

2.0.0.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

19/07 2017

1.2.2

1.2.2.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

19/07 2017

1.2.1

1.2.1.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

19/07 2017

1.2.0

1.2.0.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

19/07 2017

1.1.1

1.1.1.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

19/07 2017

1.1.0

1.1.0.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

28/04 2016

1.0.7

1.0.7.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

27/04 2016

1.0.6

1.0.6.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

26/04 2016

1.0.5

1.0.5.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

25/04 2016

1.0.4

1.0.4.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

25/04 2016

1.0.3

1.0.3.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

25/04 2016

1.0.2

1.0.2.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

25/04 2016

1.0.1

1.0.1.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran

25/04 2016

1.0.0

1.0.0.0 https://github.com/jonathanmaron/image-optimizer

Image optimization / compression CLI tool. This tool optimizes PNG and JPEG files from the CLI, using 'pngout', 'pngcrush' and 'jpegtran'.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

image optimization compression image optimizer pngcrush pngout jpegtran