Image Thumbnailer
for Zend Framework 2

Build Status Coverage Status Scrutinizer Quality Score Dependency Status
Latest Stable Version Total Downloads Latest Unstable Version License

Service that provides API to manipulate images.

Powered by PHPThumb

Features

Setup

Following steps are necessary to get this module working, considering a zf2-skeleton or very similar application:

  1. Run: php composer.phar require webino/webino-image-thumb:dev-develop
  2. Add WebinoImageThumb to the enabled modules list

Requirements

QuickStart

Options

The options array allows you to customize the behavior of the library a bit. Some of these options are implementation-specific, and are noted as such. So, let's first go over what options are available to us:

Option Name Description Default Value Valid Values
resizeUp Whether or not to scale an image up to the desired dimensions false true / false
jpegQuality What quality to save jpeg files with (how much compression to use, 100 being none) 100 1-100
correctPermissions Whether or not the library should attempt to correct file permissions. This will only work if you set up your PHP to allow chmod operations false true / false
preserveAlpha Whether or not to preserve alpha transparency in PNG files true true / false
alphaMaskColor What rgb color should be used for the alpha mask [255, 255, 255] [0-255, 0-255, 0-255]
preserveTransparency Whether or not to preserve transparency in GIF files true true / false
transparencyMaskColor What rgb color should be used for the transparency mask [255, 255, 255] [0-255, 0-255, 0-255]
interlace When the interlace option equals true or false call imageinterlace null true / false

Functions

Getters / Setters

Reflection plugin

Whitespace Cropper plugin

Changelog

2.0.0 [UNRELEASED]

1.0.0

Development

Dependency Status

We will appreciate any contributions on development of this module.

Learn How to develop Webino modules

Addendum

Most of the documentation is taken from the PHPThumb wiki.

Please, if you are interested in this Zend Framework module report any issues and don't hesitate to contribute.

Report a bug | Fork me