2017 © Pedro Peláez
 

library emak-image

Image transformation filter for ZF2 via Imagine

image

3makkk/emak-image

Image transformation filter for ZF2 via Imagine

  • Friday, February 6, 2015
  • by 3makkk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Emak Image

Created by Sven Friedemann, (*1)

Build Status, (*2)

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., (*3)

Installation

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

Or simply clone it into your vendor directory., (*5)

Filters

Each Filter is a implementation of Zend\Filter\FilterInterface and is available in the filter manager., (*6)

Thumbnail: Generate a thumbnail from current image., (*7)

The following options are Supported for Image\Filter\File\Thumbnail, (*8)

  • 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), (*9)

The following options are supported for Image\Filter\File\Resize, (*10)

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

Watermark: Watermark current image, (*11)

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., (*12)

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, (*13)

The Versions

06/02 2015

dev-master

9999999-dev

Image transformation filter for ZF2 via Imagine

  Sources   Download

MIT

The Requires

 

06/02 2015

v0.1.0

0.1.0.0

Image transformation filter for ZF2 via Imagine

  Sources   Download

MIT

The Requires