php python 图像处理,Imagine-PHP: Imagine 是 PHP 一个强大的图像处理库,要求 PHP 5.3 及更新版本,其灵感来自于 Python 的 PIL...

Imagine

Imagine.svg?branch=developImagine?branch=develop&svg=true

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值