PHPackages                             presprog/contao-resizeonupload - 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. presprog/contao-resizeonupload

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

presprog/contao-resizeonupload
==============================

Define image sizes per folder and automatically generate thumbnails on upload or with a console command.

2.0.0(2y ago)013MITPHPPHP ^7.4 || ^8.0

Since Sep 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/presprog/contao-resizeonupload)[ Packagist](https://packagist.org/packages/presprog/contao-resizeonupload)[ RSS](/packages/presprog-contao-resizeonupload/feed)WikiDiscussions master Synced 1mo ago

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

Resize images on upload
=======================

[](#resize-images-on-upload)

Define image sizes per folder in the back end to have the thumbnails automatically generated after uploading them to your server. Additionally, there is a console command to generate all the missing thumbnails.

Resize on upload
----------------

[](#resize-on-upload)

1. Create a new folder and select the image sizes that should be generated
2. Create as many sub folders with additional image sizes, if you wish.
3. Upload an image to a folder. The bundle will generate the image sizes defined for this folder and its parents.

Resize with a console command
-----------------------------

[](#resize-with-a-console-command)

This bundle provides a console command for your convenience. Just define your image sizes in the back end and run the command as follows to generate every missing thumbnail:

```
$ vendor/bin/contao-console resizeonupload:generate-thumbs

```

Why?
----

[](#why)

Contao usually creates thumbnails on-the-fly: Whenever you request to resize a given image, Contao creates a settings file per image first without actually resizing the image. When the user than loads the website in the browser, the browser requests that image and only then the image will actually be resized – or it won't when an image is never requested, making it a very efficient process.

However, this requires the client (the browser) to wait for the image to be generated. We once had the need to provide a mobile app with images in the correct size, that the app itself requested via a custom JSON API, but it did not wait for the response. The solution was to organize images by topic/usage and assign these folders the right image size, i.e. create a 150px×150px thumb for every image in the folder `avatars`. Whenever a new avatar was uploaded, we would generate the new thumbs ahead of time.

---

Made with ♥️ and ☕ by [Present Progressive](https://www.presentprogressive.de)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Total

3

Last Release

986d ago

Major Versions

1.0.1 → 2.0.02023-08-29

PHP version history (2 changes)1.0.0PHP ^7.2

2.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb1ebdab7f2ba8b43be86588cbdcf153b0342e9364c3c890f8b8d6715fccbc3f?d=identicon)[presprog](/maintainers/presprog)

---

Top Contributors

[![bezin](https://avatars.githubusercontent.com/u/4400435?v=4)](https://github.com/bezin "bezin (3 commits)")

### Embed Badge

![Health badge](/badges/presprog-contao-resizeonupload/health.svg)

```
[![Health](https://phpackages.com/badges/presprog-contao-resizeonupload/health.svg)](https://phpackages.com/packages/presprog-contao-resizeonupload)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M61](/packages/contao-manager-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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