<commit_before>php-image-optim
===============
[![Build Status](https://travis-ci.org/bensquire/php-image-optim.png)](https://travis-ci.org/bensquire/php-image-optim)

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

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

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

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

Tested with:
------------
    gifsicle
    jpegOptim
    jpegTran
    pngQuant - 2.6.0
    advPng - 1.18
    optiPng
    pngCrush - 1.8.0
    pngOut - Sep 20 2015

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

    <?php
    include('./vendor/autoload.php');
    <commit_msg>Removed unfinished "version" list<commit_after>php-image-optim
===============
[![Build Status](https://travis-ci.org/bensquire/php-image-optim.png)](https://travis-ci.org/bensquire/php-image-optim)

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

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

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

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

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

    <?php
    include('./vendor/autoload.php');
    
{'fraction_non_alphanumeric': 0.14385964912280702, 'fraction_numerical': 0.009941520467836258, 'mean_word_length': 2.8106904231625833, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '547002', 'n_tokens_mistral': 536, 'n_tokens_neox': 507, 'n_words': 163}