Skip to content
/ optimg Public

A PHP class for optimizing images using best practice. It also includes a CLI interface that you can use for build or commit check.

Notifications You must be signed in to change notification settings

josephj/optimg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

optimg

A PHP class for optimizing images according to Stoyan Stefanov's Image Optimization articles. It also includes a CLI interface that you can use for build or commit check. Yahoo! has a similar tool called Smush.it. This tool basicly provides the same functionality as it.

Dependencies

You need to have the following executable command-line tools installed in your operating system.

  • ImageMagick
  • jpegtran
  • pngcrush
  • gifsicle
  • pngquant
  • pngout

Installation

$ git clone git://github.com/josephj/optimg.git
$ cd optimg
$ chmod +x optimg
$ ./optimg

Usage

Usage: optimg [options] image_path

  -c, --check-only   Check if path has fully optimized.
  -r, --report-only  Show report without really optimization.
  --png8             Transform all PNG files to PNG8 format.

About

A PHP class for optimizing images using best practice. It also includes a CLI interface that you can use for build or commit check.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages