prolix / imagine
Image processing for PHP 5.3
Requires
- php: >=5.3.2
Requires (Dev)
- sami/sami: ^3.3
- symfony/phpunit-bridge: 5.0.*
Suggests
- ext-gd: to use the GD implementation
- ext-gmagick: to use the Gmagick implementation
- ext-imagick: to use the Imagick implementation
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- 0.7.x-dev
- dev-develop / 0.7.x-dev
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.3
- 0.6.2
- v0.6.1
- v0.6.0
- 0.5.x-dev
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.1
- v0.3.0
- v0.2.8
- v0.2.7
- v0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.1
- 0.2.0
- dev-master
- dev-revert-537-revert-526-imagick-rotate-and-canvas-size
- dev-revert-536-revert-525-patch-1
- dev-revert-535-revert-505-png-compression-newer-imagemagick
- dev-revert-532-revert-449-gd/applyMaskFix
- dev-feature/border-filter
This package is auto-updated.
Last update: 2024-11-13 22:25:34 UTC
README
Tweet about it using the #php_imagine hashtag.
Image manipulation library for PHP 5.3 inspired by Python's PIL and other image libraries.
Requirements
The Imagine library has the following requirements:
- PHP 5.3+
Depending on the chosen Image implementation, you may need one of the following:
- GD2
- Imagick
- Gmagick
Installation using composer
php composer.phar require imagine/imagine
Basic Principles
The main purpose of Imagine is to provide all the necessary functionality to bring all native low level image processing libraries in PHP to the same simple and intuitive OO API.
Several things are necessary to accomplish that:
- Image manipulation tools, such as resize, crop, etc.
- Drawing API - to create basic shapes and advanced charts, write text on the image
- Masking functionality - ability to apply black&white or grayscale images as masks, leading to semi-transparency or absolute transparency of the image the mask is being applied to
The above tools should be the basic foundation for a more powerful set of tools that are called Filters
in Imagine.
Some of the ideas for upcoming filters:
- Charting and graphing filters - pie and bar charts, linear graphs with annotations
- Reflection - apple style
- Rounded corners - web 2.0