PHPackages                             kitsunecode/cropper - 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. kitsunecode/cropper

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

kitsunecode/cropper
===================

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

v2.0.4(3y ago)044MITPHP

Since Aug 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/enosfox/cropper)[ Packagist](https://packagist.org/packages/kitsunecode/cropper)[ Docs](https://www.kitsunews.com)[ RSS](/packages/kitsunecode-cropper/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (11)Used By (0)

Cropper @KitsuneCode
====================

[](#cropper-kitsunecode)

###### Cropper is a component that simplifies the creation of JPG, PNG and WEBP (by default how thumbnails are converted to webP) image thumbnails with a cache engine. Cropper CC creates your image for each part required in the application with zero complexity.

[](#cropper-is-a-component-that-simplifies-the-creation-of-jpg-png-and-webp-by-default-how-thumbnails-are-converted-to-webp-image-thumbnails-with-a-cache-engine-cropper-cc-creates-your-image-for-each-part-required-in-the-application-with-zero-complexity)

Cropper é um componente que simplifica a criação de miniaturas de imagens JPG, PNG e WEBP (por padrão as miniaturas são convertidas para webP) com um motor de cache. O Cropper CC cria versões de suas imagens para cada dimensão necessária na aplicação com zero de complexidade.

About KitsuneCode
-----------------

[](#about-kitsunecode)

###### KitsuneCode is a set of small and optimized PHP components for common tasks. Held by Enos S. S. Silva and the Kitsune team. With them you perform routine tasks with fewer lines, writing less and doing much more.

[](#kitsunecode-is-a-set-of-small-and-optimized-php-components-for-common-tasks-held-by-enos-s-s-silva-and-the-kitsune-team-with-them-you-perform-routine-tasks-with-fewer-lines-writing-less-and-doing-much-more)

KitsuneCode é um conjunto de pequenos e otimizados componentes PHP para tarefas comuns. Mantido por Enos S. S. Silva e a equipe Kitsune. 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)

Cropper is available via Composer:

```
"kitsunecode/cropper": "2.0.*"
```

or run

```
composer require kitsunecode/cropper
```

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. KitsuneCode Cropper 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-kitsunecode-cropper-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. KitsuneCode Cropper funciona assim:

#### Create thumbnails

[](#create-thumbnails)

```
