Download the PHP package newclass/imago without Composer
On this page you can find all versions of the php package newclass/imago. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package imago
README
What is Imago?
Imago is a PHP library to convert image and generate sprite. Support filters:
- resize
- auto crop
- resize canvas
Installation
The best way to install is to use the composer by command:
composer require newclass/imago
composer install
Use converter example
use Imago\Converter;
use Imago\Filter\ResizeFilter;
$converter=new Converter('image.png');
$filter=new ResizeFilter();
$filter->setWidth(200);
$filter->setHeight(300);
$converter->addFilter($filter);
$converter->save('output.jpg');
Use sprite generator example
use Imago\Filter\CropFilter;
use Imago\SpriteGenerator;
$spriteGenerator=new SpriteGenerator();
$spriteGenerator->addFile('file.jpg');
$spriteGenerator->addDir('dir_with_images');
$this->spriteGenerator->addFilter(new CropFilter());
$this->spriteGenerator->save('output_image.png','output.css');
All versions of imago with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
ext-gd Version *
ext-gd Version *
The package newclass/imago contains the following files
Loading the files please wait ....