PHPackages                             just/thumbnailbundle - 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. just/thumbnailbundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

just/thumbnailbundle
====================

A Symfony bundle that creates Thumbnails on the fly using the GD library

3.0.9(1y ago)31.5k[1 issues](https://github.com/julianstricker/ThumbnailBundle/issues)MITPHPPHP &gt;=5.4 || ^7.0 || ^8.0CI failing

Since Feb 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/julianstricker/ThumbnailBundle)[ Packagist](https://packagist.org/packages/just/thumbnailbundle)[ Docs](https://github.com/julianstricker/ThumbnailBundle)[ RSS](/packages/just-thumbnailbundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (46)Used By (0)

Just/ThumbnailBundle - Symfony2/3/4 Bundle for on-the-fly Thumbnails Creation
=============================================================================

[](#justthumbnailbundle---symfony234-bundle-for-on-the-fly-thumbnails-creation)

Overview
========

[](#overview)

This is a bundle for the Symfony2, Symfony3 and Symfony4 framework that creates Thumbnails on first demand. The thumbnails then are stored using the Symfony cache system. It creates a thumbnail of a image in the given size and stores it in cache for the next calls, until the image changes. The bundle has a new face-detection feature to avoid cut off of faces.

[![SensioLabsInsight](https://camo.githubusercontent.com/5974f52f65d6f39a53d54dc10b467e3ffab52f8b9f5f3f0d5d03bde5df01388a/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66393766656631352d366562392d343565322d393937332d3539343835313461343836342f6269672e706e67)](https://insight.sensiolabs.com/projects/f97fef15-6eb9-45e2-9973-5948514a4864)

License
=======

[](#license)

This bundle is released under the [MIT license](LICENSE)

Installation
============

[](#installation)

Step1: Using Composer
---------------------

[](#step1-using-composer)

Add the following line to your composer.json require block:

```
// composer.json
{
    // ...
    require: {
        // ...
        "just/thumbnailbundle": "~2.0"
    }
}

```

Then, you can install the new dependencies by running Composer's `update`command from the directory where your `composer.json` file is located:

```
$ php composer.phar update
```

### Step 2: Register the Bundle

[](#step-2-register-the-bundle)

Modify your AppKernel with the following line:

```
