2017 © Pedro Peláez
 

library imanee

PHP Image Manipulation Library

image

imanee/imanee

PHP Image Manipulation Library

  • Tuesday, November 24, 2015
  • by erikaheidi
  • Repository
  • 20 Watchers
  • 277 Stars
  • 18,520 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 36 Forks
  • 12 Open issues
  • 18 Versions
  • 11 % Grown

The README.md

Build Status Documentation Status Coverage Status License Join the chat at https://gitter.im/imanee/imanee, (*1)

Imanee is a simple Image Manipulation library for PHP. It provides an easy flow and convenient methods for creating thumbnails, watermarks, text writing, animated gifs and more., (*2)

Check our live demos for usage examples. Check our documentation for detailed instructions., (*3)

Requirements

Imanee requires PHP >= 5.4 , and one of the following image extensions for PHP: Imagick or GD. It's recommended to use Imagick as it has more features, including animated gifs support (not available with GD)., (*4)

Installation

First make sure you have either Imagick or GD installed and enabled on your PHP server. Imanee will try to use GD if Imagick is not found in the system., (*5)

You can add Imanee to your project easily through composer:, (*6)

$ composer require imanee/imanee

Getting Started

Some simple examples to get you started:, (*7)

Thumbnail output

header("Content-type: image/jpg");

$imanee = new Imanee('path/to/my/image.jpg');
echo $imanee->thumbnail(200, 200)->output();

Writing centralized text on top of an image


header("Content-type: image/jpg"); $imanee = new Imanee('path/to/my/image.jpg'); echo $imanee->placeText('imanee test', 40, Imanee::IM_POS_MID_CENTER) ->output();

Image composition

header("Content-type: image/jpg");

$imanee = new Imanee('path/to/my/image.jpg');

/** places 4 different png images on the 4 corners of the original image */

echo $imanee->placeImage('img1.png', Imanee::IM_POS_TOP_LEFT)
    ->placeImage('img2.png', Imanee::IM_POS_TOP_RIGHT)
    ->placeImage('img3.png', Imanee::IM_POS_BOTTOM_LEFT)
    ->placeImage('img4.png', Imanee::IM_POS_BOTTOM_RIGHT)
    ->output()
;

Animated Gifs from an array of images

$frames[] = 'img01.png';
$frames[] = 'img02.png';
$frames[] = 'img03.png';
$frames[] = 'img04.png';

header("Content-type: image/gif");

echo Imanee::arrayAnimate($frames, 30);

Animated Gifs from files in a directory

header("Content-type: image/gif");

echo Imanee::globAnimate('resources/*.jpg');

Forcing GD usage

header("Content-type: image/jpg");

$imanee = new Imanee('path/to/my/image.jpg', new GDResource());
echo $imanee->thumbnail(200, 200)->output();

For more (and complete) examples please have a look at the demos repository: https://github.com/imanee/demos, (*8)

The Versions

24/11 2015

1.2.3.x-dev

1.2.3.9999999-dev http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

20/11 2015

dev-master

9999999-dev http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

03/09 2015

1.2.2

1.2.2.0 http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

03/09 2015

dev-nostretch

dev-nostretch http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

27/06 2015

1.2.1

1.2.1.0 http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

25/06 2015

dev-robth82-GDPixel-unit-tests

dev-robth82-GDPixel-unit-tests http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

13/06 2015

1.1.2

1.1.2.0 http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

13/06 2015

dev-method-returns

dev-method-returns http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

12/06 2015

1.1.1

1.1.1.0 http://imanee.io

PHP Image Manipulation Library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image gd imagick imagemagick

11/06 2015

dev-gd-write

dev-gd-write http://imanee.io

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image imagick imagemagick processing

01/06 2015

1.1

1.1.0.0 http://imanee.io

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php image imagick imagemagick processing

01/05 2015

dev-tests

dev-tests http://imanee.github.com/imanee

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-imagick *

 

The Development Requires

php image imagick imagemagick processing

23/02 2015

1.0.2

1.0.2.0 http://imanee.github.com/imanee

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-imagick *

 

The Development Requires

php image imagick imagemagick processing

23/02 2015

1.0.1

1.0.1.0 http://imanee.github.com/imanee

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-imagick *

 

The Development Requires

php image imagick imagemagick processing

20/02 2015

1.0

1.0.0.0 http://imanee.github.com/imanee

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-imagick *

 

The Development Requires

php image imagick imagemagick processing

20/02 2015

1.0.x-dev

1.0.9999999.9999999-dev http://imanee.github.com/imanee

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-imagick *

 

The Development Requires

php image imagick imagemagick processing

10/10 2014

0.1.1

0.1.1.0 http://imanee.github.com/imanee

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-imagick *

 

The Development Requires

by Hugo Reinaldo

php image manipulation imagick imagemagick

10/10 2014

0.1

0.1.0.0 http://imanee.github.com/imanee

A PHP Image Manipulation Library based on Imagemagick

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-imagick *

 

The Development Requires

by Hugo Reinaldo

php image manipulation imagick imagemagick