2017 © Pedro Peláez
 

library image

Image effects, thumbnails and postprocessing

image

lireincore/image

Image effects, thumbnails and postprocessing

  • Monday, May 7, 2018
  • by lireincore
  • Repository
  • 0 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 49 % Grown

The README.md

Image effects, thumbnails and postprocessing

Latest Stable Version Total Downloads License, (*1)

About

Supports GD, Imagick and Gmagick., (*2)

Also, you can use a special extension lireincore/imgcache that adds the ability to cache thumbs., (*3)

Install

Add the "lireincore/image": "^0.3" package to your require section in the composer.json file, (*4)

or, (*5)

``` bash $ php composer.phar require lireincore/image, (*6)


## Usage ```php //Use basic effects use LireinCore\Image\Manipulators\Imagine; use LireinCore\Image\PostProcessors\OptiPng; $image = (new Imagine()) ->open('/path/to/image.jpg') ->resize(1000, 500) ->grayscale() ->blur(2) ->text('Hello word', 'Verdana'); ->save('/path/to/new_image.png', ['format' => 'png', 'png_compression_level' => 7]); $postProcessor = new OptiPng(); $postProcessor->process('/path/to/new_image.png'); //optimize image //Also you can add extended effects use LireinCore\Image\Manipulator; use LireinCore\Image\Manipulators\Imagine; use LireinCore\Image\Effects\Overlay; use LireinCore\Image\Effects\ScaleDown; use LireinCore\Image\Effects\Fit; use LireinCore\Image\PostProcessors\JpegOptim; $image = (new Imagine(Manipulator::DRIVER_GD)) ->open('/path/to/image.jpg') ->apply(new Overlay('/path/to/watermark.png', 70, 'right', 'bottom', '50%', '50%')) ->grayscale() ->apply(new ScaleDown('50%', '50%', true)) ->apply(new Fit('center', 'center', '200', '90', '#f00', 20, true)) ->negative() ->save('/path/to/new_image.jpg'); $postProcessor = new JpegOptim(); $postProcessor->process('/path/to/new_image.jpg'); //optimize image

License

The MIT License (MIT). Please see License File for more information., (*7)

The Versions

07/05 2018

dev-master

9999999-dev https://github.com/lireincore/image

Image effects, thumbnails and postprocessing

  Sources   Download

MIT

The Requires

 

by lirein

image resize thumb effect

07/05 2018

0.1.2

0.1.2.0 https://github.com/lireincore/image

Image effects, thumbnails and postprocessing

  Sources   Download

MIT

The Requires

 

by lirein

image resize thumb effect

07/05 2018

0.1.1

0.1.1.0 https://github.com/lireincore/image

Image effects, thumbnails and postprocessing

  Sources   Download

MIT

The Requires

 

by lirein

image resize thumb effect

26/04 2018

0.1.0

0.1.0.0 https://github.com/lireincore/image

Image effects, thumbnails and postprocessing

  Sources   Download

MIT

The Requires

 

by lirein

image resize thumb effect