PHPackages                             codeblog/thumbcropper - 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. codeblog/thumbcropper

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

codeblog/thumbcropper
=====================

Thumb é um componente que cria de forma simples e rápida miniaturas de imagens JPG e PNG com um motor de cache.

v1.0.4(5y ago)0791MITPHPPHP ^7.1

Since Dec 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/whallysson/thumbcropper)[ Packagist](https://packagist.org/packages/codeblog/thumbcropper)[ Docs](http://www.codeblog.com.br)[ RSS](/packages/codeblog-thumbcropper/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)DependenciesVersions (6)Used By (1)

thumbcropper
============

[](#thumbcropper)

Classe para imagens em miniatura

[![N|Solid](https://camo.githubusercontent.com/946696bf62833f81eb9ccd9739860d21994df3ce02641259d4f4930ea5b0b9dd/68747470733a2f2f7374632e70616773656775726f2e756f6c2e636f6d2e62722f7075626c69632f696d672f626f746f65732f646f61636f65732f3230397834382d646f61722d617373696e612e676966)](https://pag.ae/bfh6JgF)

@copyright (c) 2016, Whallysson Avelino - ()

### Como usar

[](#como-usar)

Ex.: [http://seusite.com/upload/images/imagem.png?w=250&amp;h=500&amp;a=b&amp;zc=2](http://seusite.com/upload/images/imagem.png?w=250&h=500&a=b&zc=2)

##### Create thumbs

[](#create-thumbs)

```
$Tim = new Thumb('images_cache');
echo $Tim->imgCreate('http://seusite.com/upload/images/imagem.png?w=250&h=500&a=b&zc=2');
ou
echo $Tim->imgCreate('upload/images/imagem.png?w=250&h=500&a=b&zc=2');

echo "";
echo "";
```

##### Clear cache

[](#clear-cache)

```
$Tim = new Thumb('images_cache');

//flush by filename
$Tim->flush("images/image.jpg");

//flush cache folder
$Tim->flush();
```

### Upload e redimensionando de imagens

[](#upload-e-redimensionando-de-imagens)

a -&gt; Alinhamento / Posicionamento de Corte (Ex.: imagem.jpg?a=b)

```
  a=c : position in the center (default)
  a=t : align top
  a=tr : align top right
  a=tl : align top left
  a=b : align bottom
  a=br : align bottom right
  a=bl : align bottom left
  a=l : align left
  a=r : align right
```

zc -&gt; Zoom &amp; Corte (Ex.: imagem.jpg?zc=2)

```
  zc=0 : Redimensionar para Ajustar dimensões especificadas (sem corte)
  zc=1 : Cortar e redimensionar para melhor ajustar as dimensões (default)
  zc=2 : Redimensionar proporcionalmente para ajustar a imagem inteira em dimensões especificadas e adicionar bordas, se necessário
  zc=3 : Redimensionar proporcionalmente ajustando o tamanho da imagem dimensionada para que não haja lacunas nas bordas
```

[![N|Solid](https://camo.githubusercontent.com/946696bf62833f81eb9ccd9739860d21994df3ce02641259d4f4930ea5b0b9dd/68747470733a2f2f7374632e70616773656775726f2e756f6c2e636f6d2e62722f7075626c69632f696d672f626f746f65732f646f61636f65732f3230397834382d646f61722d617373696e612e676966)](https://pag.ae/bfh6JgF)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

5

Last Release

2179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/33d38ee9fb28a8bcf4176205ebf880d039cda8bf32f231c43614d047c1c042c2?d=identicon)[whallysson](/maintainers/whallysson)

---

Top Contributors

[![whallysson](https://avatars.githubusercontent.com/u/6969398?v=4)](https://github.com/whallysson "whallysson (9 commits)")

---

Tags

thumbTimThumbCodeBlogtim

### Embed Badge

![Health badge](/badges/codeblog-thumbcropper/health.svg)

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

###  Alternatives

[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[james-heinrich/phpthumb

The PHP thumbnail generator

318516.1k6](/packages/james-heinrich-phpthumb)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[intervention/image-driver-vips

libvips driver for Intervention Image

4495.5k6](/packages/intervention-image-driver-vips)[reliqarts/laravel-guided-image

Simplified and ready image manipulation for Laravel via intervention image.

351.4k](/packages/reliqarts-laravel-guided-image)[anahkiasen/illuminage

Wrapper for the Imagine library to hook into the Laravel framework

184.3k](/packages/anahkiasen-illuminage)

PHPackages © 2026

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