定制 3makkk/emak-image 二次开发

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

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

3makkk/emak-image

最新稳定版本:v0.1.0

Composer 安装命令:

composer require 3makkk/emak-image

包简介

Image transformation filter for ZF2 via Imagine

README 文档

README

Created by Sven Friedemann

Build Status

Introduction

Image is a Zend Framework 2 Module to manipulate images via filter. It uses the high configurable Zend Framework Filter system to transform and manipulate images and based on Imagine.

Installation

Add "3makkk\emak-image" to your composer.json file and update your dependencies. Enable "EmakImage" in your application.config.php.

Or simply clone it into your vendor directory.

Filters

Each Filter is a implementation of Zend\Filter\FilterInterface and is available in the filter manager.

Thumbnail: Generate a thumbnail from current image.

The following options are Supported for Image\Filter\File\Thumbnail

  • width: Width of thumbnail.
  • height: Height of thumbnail.
  • mode: The mode specify the behavior of the crop/resize mechanism. It can be inset or outbound.

Resize: Resize the current image. (not proportional)

The following options are supported for Image\Filter\File\Resize

  • width: Width of resized image.
  • height: Height of resized image.

Watermark: Watermark current image

The following options are supported for EmakImage\Filter\File\Watermark

  • watermark_image_path: Path to Watermark image.
  • position_x: position of watermark on X axis (Watermark:POSITION_X_LEFT | Watermark::POSITION_X_CENTER | Watermark::POSITION_X_RIGHT)
  • position_y: position of watermark on Y axis (Watermark:POSITION_Y_TOP | Watermark::POSITION_Y_CENTER | Watermark::POSITION_Y_BOTTOM)
  • offset_x: Watermark offset on X axis relative to position.
  • offset_y: Watermark offset on Y axis relative to position.

All filters are available via the filter manager.

  • File\Filter\Image\Thumbnail => EmakImage\Filter\File\Thumbnail
  • File\Filter\Image\Resize => EmakImage\Filter\File\Resize
  • File\Filter\Image\Watermark => EmakImage\Filter\File\Watermark

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-07