2017 © Pedro Peláez
 

library imago

The PHP image converter.

image

newclass/imago

The PHP image converter.

  • Monday, September 25, 2017
  • by newclass-pl
  • Repository
  • 0 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

README

license PHP 5.5+, (*1)

What is Imago?

Imago is a PHP library to convert image and generate sprite. Support filters: - resize - auto crop - resize canvas, (*2)

Installation

The best way to install is to use the composer by command:, (*3)

composer require newclass/imago, (*4)

composer install, (*5)

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');

The Versions

25/09 2017

dev-master

9999999-dev

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-gd *

 

The Development Requires

by Michal Tomczak

25/09 2017

dev-develop

dev-develop

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-gd *

 

The Development Requires

by Michal Tomczak

25/09 2017

v0.6.1

0.6.1.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-gd *

 

The Development Requires

by Michal Tomczak

20/03 2017

v0.5.0

0.5.0.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-gd *

 

The Development Requires

by Michal Tomczak

20/03 2017

v0.6.0

0.6.0.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-gd *

 

The Development Requires

by Michal Tomczak

20/03 2017

v0.4.0

0.4.0.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-gd *

 

The Development Requires

by Michal Tomczak

27/02 2017

v0.3.0

0.3.0.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-gd *

 

The Development Requires

by Michal Tomczak

19/02 2017

v0.2.2

0.2.2.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

19/02 2017

v0.2.1

0.2.1.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

19/02 2017

v0.2.0

0.2.0.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

17/02 2017

v0.1.0

0.1.0.0

The PHP image converter.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak