PHPackages                             razor/thumbnailer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. razor/thumbnailer

ActiveLibrary[Image &amp; Media](/categories/media)

razor/thumbnailer
=================

An image thumbnailer service module for Zend Framework 2

v1.0.1(12y ago)016221MITPHPPHP &gt;=5.3.3

Since Dec 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/kaiohken1982/Thumbnailer)[ Packagist](https://packagist.org/packages/razor/thumbnailer)[ Docs](https://github.com/kaiohken1982/Thumbnailer)[ RSS](/packages/razor-thumbnailer/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (3)Used By (1)

Image Thumbnailer Module
========================

[](#image-thumbnailer-module)

[![Build Status](https://camo.githubusercontent.com/2baf079151452b85c0f1071acdda068e5eb9d41b49c918b5d777f216f0a5cd8b/68747470733a2f2f7472617669732d63692e6f72672f6b61696f686b656e313938322f5468756d626e61696c65722e706e67)](https://travis-ci.org/kaiohken1982/Thumbnailer)[![Coverage Status](https://camo.githubusercontent.com/f1f8c9ae0094657d4446abf3f5493ad2515ba842fb3a5fcf36dbd636109749e4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6b61696f686b656e313938322f5468756d626e61696c65722f62616467652e706e67)](https://coveralls.io/r/kaiohken1982/Thumbnailer)[![Dependency Status](https://camo.githubusercontent.com/0cbdb389d65509578631fd0804960acf489805395e1ccdc77b0bfdac8a5fc186/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532623137363333656331333735373233373030303034652f62616467652e706e67)](https://www.versioneye.com/user/projects/52b17633ec1375723700004e)[![Latest Stable Version](https://camo.githubusercontent.com/a364acdc797f7b4c6d7f522b5ee65582fe27df4f6ea6b0dbbe39197a612ebc5a/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f722f7468756d626e61696c65722f762f737461626c652e706e67)](https://packagist.org/packages/razor/thumbnailer)[![Total Downloads](https://camo.githubusercontent.com/0183b451993e503712d2c089d01b3bd870f08af3e7d2504dadd4a4111b534328/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f722f7468756d626e61696c65722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/razor/thumbnailer)[![Latest Unstable Version](https://camo.githubusercontent.com/8fd8ca5fef9db3d3e7c18713dfd3646a3b5e74e6a2d06690f45314183116c840/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f722f7468756d626e61696c65722f762f756e737461626c652e706e67)](https://packagist.org/packages/razor/thumbnailer)

- An image thumbnailer service module for Zend Framework 2.
- There is also available a form filter that internally uses the Thumbnailer service.

### Install with Composer

[](#install-with-composer)

```
{
 "repositories": [
       {
           "type": "vcs",
           "url": "https://github.com/kaiohken1982/Thumbnailer.git"
       }
   ],
   "require": {
       ......,
       "razor/thumbnailer" : "dev-master"
   }
}

```

### How to use

[](#how-to-use)

In a controller

```
   	$thumbnailer = $this->getServiceLocator()->get('Thumbnailer');
   	$thumbnailer->open('\path\to\image.png');
   	$thumbnailer->resize(400);
   	$thumbnailer->save('\path\to\image_resized.png');

```

### Run unit test

[](#run-unit-test)

Please note you must be in the module root.

```
curl -s http://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

```

If you have xdebug enabled and you want to see code coverage run the command below, it'll create html files in Thumbnailer\\test\\data\\coverage

```
./vendor/bin/phpunit --coverage-html data/coverage

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/537b38dd9b93e66b407a3ee99cea99a9b67031886107654604c41cdcfb889bc5?d=identicon)[Razorblade](/maintainers/Razorblade)

---

Top Contributors

[![kaiohken1982](https://avatars.githubusercontent.com/u/1187333?v=4)](https://github.com/kaiohken1982 "kaiohken1982 (45 commits)")

---

Tags

thumbnailimagewatermarkzf2crop

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/razor-thumbnailer/health.svg)

```
[![Health](https://phpackages.com/badges/razor-thumbnailer/health.svg)](https://phpackages.com/packages/razor-thumbnailer)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[jbzoo/image

A PHP class that simplifies working with images

171126.9k3](/packages/jbzoo-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[folklore/image

Image manipulation library for Laravel 5 based on Imagine and inspired by Croppa for easy url based manipulation

270248.2k5](/packages/folklore-image)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

141110.4k6](/packages/stefangabos-zebra-image)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
