PHPackages                             simpsyst/thumbcrop - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. simpsyst/thumbcrop

ActiveLibrary[File &amp; Storage](/categories/file-storage)

simpsyst/thumbcrop
==================

It is a easy and simple PHP image cropper and cache thumb manager

1.0.0(5y ago)113MITPHPPHP ^7.2

Since Feb 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/diegoamatos/thumbcrop)[ Packagist](https://packagist.org/packages/simpsyst/thumbcrop)[ Docs](http://www.diegomatos.com)[ RSS](/packages/simpsyst-thumbcrop/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Thumbcrop @SimpSyst
===================

[](#thumbcrop-simpsyst)

[![Maintainer](https://camo.githubusercontent.com/9ef9a7836c11a8828a06cc69b4885f957c84a883df7478b8be3d226bfb4b4148/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d40646965676f6d61746f732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/diegoamatos)[![Source Code](https://camo.githubusercontent.com/dea639134bb5bf2b2ecf9e3b6050f0befd6eb282f3a3ab82134fb511f012f124/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d73696d70737973742f7468756d6263726f702d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/diegoamatos/thumbcrop)[![PHP from Packagist](https://camo.githubusercontent.com/2960d84bf3b13c71fd01c238b0b10eb4de082b7013c5ff34c75e1f7a60659c93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73696d70737973742f7468756d6263726f702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/simpsyst/thumbcrop)[![Latest Version](https://camo.githubusercontent.com/5c4f7a3f292ffd97454194b458d4277851a6f8cb3b7adab4b47271eb631c0250/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f646965676f616d61746f732f7468756d6263726f702e7376673f7374796c653d666c61742d737175617265)](https://github.com/diegoamatos/thumbcrop/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/8e2ca691bab1e7373f5ba2655ca6eea29d4d9178d37d23defb08594d6d98c7ca/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f646965676f6d61746f732f7468756d6263726f702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/diegoamatos/thumbcrop)[![Quality Score](https://camo.githubusercontent.com/2618bfefe61c6006b3e34b4d13e05eda9f34b57741a4bce9c364d07271b7f52b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646965676f616d61746f732f7468756d6263726f702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/diegoamatos/thumbcrop)[![Total Downloads](https://camo.githubusercontent.com/2ffbbba541fded664d400273a7cdfe007add29411d6813ad741adc2cf1d11179/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696d70737973742f7468756d6263726f702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/simpsyst/thumbcrop)

###### Thumbcrop is a component that simplifies the creation of JPG and PNG image thumbnails with a cache engine. Thumbcrop CC creates your image for each part required in the application with zero complexity.

[](#thumbcrop-is-a-component-that-simplifies-the-creation-of-jpg-and-png-image-thumbnails-with-a-cache-engine-thumbcrop-cc-creates-your-image-for-each-part-required-in-the-application-with-zero-complexity)

Thumbcrop é um componente que simplifica a criação de miniaturas de imagens JPG e PNG com um motor de cache. O Thumbcrop CC cria versões de suas imagens para cada dimensão necessária na aplicação com zero de complexidade.

\####WEBP THUMBNAILS:

Published in version 1.3.\* by default how thumbnails are converted to webP.

Adicionado na versão 1.3.\* por padrão as miniaturas são convertidas para webP.

About SimpSyst
--------------

[](#about-simpsyst)

###### SimpSyst is a set of small and optimized PHP components for common tasks. Held by Diego Matos and the Compusert team. With them you perform routine tasks with fewer lines, writing less and doing much more.

[](#simpsyst-is-a-set-of-small-and-optimized-php-components-for-common-tasks-held-by-diego-matos-and-the-compusert-team-with-them-you-perform-routine-tasks-with-fewer-lines-writing-less-and-doing-much-more)

SimpSyst é um conjunto de pequenos e otimizados componentes PHP para tarefas comuns. Mantido por Diego Matos. Com eles você executa tarefas rotineiras com poucas linhas, escrevendo menos e fazendo muito mais.

### Highlights

[](#highlights)

- Simple Thumbnail Creator (Simples criador de miniaturas)
- Cache optimization per dimension (Otimização em cache por dimensão)
- Media Control by Filename (Contrôle de mídias por nome do arquivo)
- Cache cleanup by filename and total (Limpeza de cache por nome de arquivo e total)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Installation
------------

[](#installation)

Thumbcrop is available via Composer:

```
"simpsyst/thumbcrop": "dev-main"
```

or run

```
composer require simpsyst/thumbcrop:dev-main
```

Documentation
-------------

[](#documentation)

###### They are just two methods to do all the work. You just need to call ***make*** to create or use thumbnails of any size, or ***flush*** to free the cache of a file or the entire folder. SimpSyst Thumbcrop works like this:

[](#they-are-just-two-methods-to-do-all-the-work-you-just-need-to-call-make-to-create-or-use-thumbnails-of-any-size-or-flush-to-free-the-cache-of-a-file-or-the-entire-folder-simpsyst-thumbcrop-works-like-this)

São apenas dois métodos para fazer todo o trabalho. Você só precisa chamar o ***make*** para criar ou usar miniaturas de qualquer tamanho, ou o ***flush*** para liberar o cache de um arquivo ou da pasta toda. SimpSyst Thumbcrop funciona assim:

#### Create thumbnails

[](#create-thumbnails)

```
