PHPackages                             pmvc-plugin/thumbnail - 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. pmvc-plugin/thumbnail

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

pmvc-plugin/thumbnail
=====================

PMVC Thumbnail Helper

0.2.1(8y ago)0490MITPHP

Since Jul 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pmvc-plugin/thumbnail)[ Packagist](https://packagist.org/packages/pmvc-plugin/thumbnail)[ Docs](https://github.com/pmvc/pmvc)[ RSS](/packages/pmvc-plugin-thumbnail/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/adb7d47bb3d0995cd558145729d5871383b5d58fc8c7bdc8d771a0a0d295c02d/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f7468756d626e61696c2f762f737461626c65)](https://packagist.org/packages/pmvc-plugin/thumbnail)[![Latest Unstable Version](https://camo.githubusercontent.com/c6389228f5e5d970a11b81ae24321e62da05a8d0acf3706497dde6086fdda032/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f7468756d626e61696c2f762f756e737461626c65)](https://packagist.org/packages/pmvc-plugin/thumbnail)[![Build Status](https://camo.githubusercontent.com/e8c666dd9080802398d4af63620f905e2cce2c0965aa52b25ce6f47935e5cac7/68747470733a2f2f7472617669732d63692e6f72672f706d76632d706c7567696e2f7468756d626e61696c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pmvc-plugin/thumbnail)[![License](https://camo.githubusercontent.com/7bd1b259b017c4cf8fd127e7216f98c59b2f0c822289c7ca63a6c289a91dad18/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f7468756d626e61696c2f6c6963656e7365)](https://packagist.org/packages/pmvc-plugin/thumbnail)[![Total Downloads](https://camo.githubusercontent.com/d569bc706391868057401f061182a0320f7815526712e2a7702095b3c1666e14/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f7468756d626e61696c2f646f776e6c6f616473)](https://packagist.org/packages/pmvc-plugin/thumbnail)

thumbnail
=========

[](#thumbnail)

[![](demo/face.jpg)](demo/face.jpg)

How to use
----------

[](#how-to-use)

-

Thumb type
----------

[](#thumb-type)

- type 0 (New size not equal defined size)
    - New image size auto fit by ratio
    - Canvans size will same with new image size.
    - [![](demo/face_new_0.png)](demo/face_new_0.png)
- type 1
    - New image size auto fit by ratio.
    - Canvans will fill with background color, and width and height will same with defined.
    - [![](demo/face_new_1.png)](demo/face_new_1.png)
- type 2
    - New image will force to max one between width and height.
    - Canvans size same with defined.
    - Auot change image location
    - [![](demo/face_new_2.png)](demo/face_new_2.png)
- type 3
    - Same with type2 but if image original size smaller than new size, will keep original one.
    - [![](demo/face_new_3.png)](demo/face_new_3.png)
- type 4
    - Same with type0 but if original size smaller than new size, will keep original one.
    - [![](demo/face_new_4.png)](demo/face_new_4.png)
- type 5
    - For security purpose, do 1:1 change.
    - [![](demo/face_new_5.png)](demo/face_new_5.png)

Install with Composer
---------------------

[](#install-with-composer)

### 1. Download composer

[](#1-download-composer)

- mkdir test\_folder
- curl -sS  | php

### 2. Install by composer.json or use command-line directly

[](#2-install-by-composerjson-or-use-command-line-directly)

#### 2.1 Install by composer.json

[](#21-install-by-composerjson)

- vim composer.json

```
{
    "require": {
        "pmvc-plugin/thumbnail": "dev-master"
    }
}

```

- php composer.phar install

#### 2.2 Or use composer command-line

[](#22-or-use-composer-command-line)

- php composer.phar require pmvc-plugin/thumbnail

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~338 days

Total

3

Last Release

2956d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f593111e77142a10224458b0436e6b2d6f3e537f924c03130f0208bd3c4477f?d=identicon)[HillLiu](/maintainers/HillLiu)

---

Top Contributors

[![HillLiu](https://avatars.githubusercontent.com/u/1877738?v=4)](https://github.com/HillLiu "HillLiu (16 commits)")

---

Tags

pmvc-imagethumbplug-inpmvc

### Embed Badge

![Health badge](/badges/pmvc-plugin-thumbnail/health.svg)

```
[![Health](https://phpackages.com/badges/pmvc-plugin-thumbnail/health.svg)](https://phpackages.com/packages/pmvc-plugin-thumbnail)
```

###  Alternatives

[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506516.3k27](/packages/bkwld-croppa)[james-heinrich/phpthumb

The PHP thumbnail generator

317545.2k18](/packages/james-heinrich-phpthumb)[alex-bond/yii2-thumbler

Library for auto-creating thumbs of images

102.1k](/packages/alex-bond-yii2-thumbler)

PHPackages © 2026

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