Skip to content

nlegoff/tiny-client

Repository files navigation

PHP-TINYPNG-COMMAND-LINE-TOOL

This PHP command line tool allows you to shrink your png files using the tinypng service.

See (http://tinypng.org/) for more informations.

⚠️

It requires at least PHP 5.3 to run

Installation

curl -s https://getcomposer.org/installer | php

php composer.phar install

chmod +x bin/tiny

How to

Usage:
 bin/tiny client:shrink [--output-dir="..."] [--override] [--no-recursive] file

Arguments:
 file            What do you want to shrink? (can be a single file or a directory)

Options:
 --output-dir    Where do you want the shrinked images to go ?
 --override      Override existing images
 --no-recursive  Do not recurse into directories

All shrinked images will be prefixed by this string shrinked.

Unit testing

Build Status

Licence

This project is licensed under the MIT license.

About

tiny-client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages