PHPackages                             elfeffe/php-image-optim - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. elfeffe/php-image-optim

ActiveLibrary[Image &amp; Media](/categories/media)

elfeffe/php-image-optim
=======================

A library to aid in image optimisation

010PHP

Since Sep 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/elfeffe/php-image-optim)[ Packagist](https://packagist.org/packages/elfeffe/php-image-optim)[ RSS](/packages/elfeffe-php-image-optim/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-image-optim
===============

[](#php-image-optim)

This is a fork of bensquire library, where I plan to add some other tools.

The purpose of this library is to help automate the optimisation of images via the command line in PHP,

Installation:
-------------

[](#installation)

The library is PSR-0 compliant and the simplest way to install it is via composer, simply add:

```
{
    "require": {
        "elfeffe/php-image-optim": "dev-master"
    }
}

```

into your composer.json, then run 'composer install' or 'composer update' as required.

Example:
--------

[](#example)

This example demonstrates the optimisation of a PNG file, by chaining several commands together.

```
