定制 calcinai/php-imagick 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

calcinai/php-imagick

最新稳定版本:v0.1.2

Composer 安装命令:

composer require calcinai/php-imagick

包简介

PHP wrapper for command line ImageMagick utils compatible with PECL::Imagick

README 文档

README

PHP wrapper for command line ImageMagick utils compatible with PECL::Imagick

This library is a polyfill for the PECL::Imagick. All classes, functions and exceptions should be equivalent to the native ones.

This is a WIP, since the library is so massive - I'm looking at a way to parse the extension and auto-generate the code.

Installation

With composer:

composer require calcinai/php-imagick

Usage

Currently there is limited functionality, but it's built in a way that supports easy implementation of arguments.

A basic example:

$image = new Imagick('~/sample.png');

$image->cropImage(190, 300, 350, 565);
$image->resizeImage(256, 350, Imagick::FILTER_CATROM, 0);

header("Content-Type: image/png");
echo $image->getImageBlob();

统计信息

  • 总下载量: 742.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 39
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 35
  • Watchers: 2
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-28