oubo 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
..
.appveyor 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
.travis 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
docs 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
src 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
tests 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
.appveyor.yml 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
.gitattributes 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
.gitignore 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
.php_cs.dist 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
.travis.yml 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
CHANGELOG.md 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
LICENSE 96d7f35943 v1.0.8 6 năm trước cách đây
MAINTAINERS.md 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
README.md 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
composer.json 36d7c0abb7 84a0bd5ae 6 năm trước cách đây
phpunit.xml.dist 36d7c0abb7 84a0bd5ae 6 năm trước cách đây

README.md

Imagine

Travis CI Build Status AppVeyor Build Status

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 PHP extensions:

  • GD2
  • Imagick (with ImageMagick version 6.2.9 or later, except version 7.0.7-32)
  • 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

Documentation

Presentations

Articles

Contributing

New pull requests should be based on the develop branch. The master branch is the stable branch: it usually matches the latest a release but in can be a bit ahead.