magnezi / nette-thumbnails
On-the-fly thumbnail generation and caching extension for Nette Framework.
Package info
github.com/magnezi/nette-thumbnails
Type:nette-extension
pkg:composer/magnezi/nette-thumbnails
v1.0.0
2026-04-09 07:32 UTC
Requires
- php: >=8.1
- nette/application: ^3.1
- nette/di: ^3.0 || ^4.0
- nette/schema: ^1.2
- nette/utils: ^3.2 || ^4.0
README
A lightweight, robust Nette Framework extension for generating and caching image thumbnails on the fly.
Features
- On-the-fly Generation: Images are resized and cached automatically upon the first request.
- Smart Caching: Subsequent requests serve static files directly, bypassing PHP overhead.
- Dynamic Subdirectories: Maintains your original folder structure (e.g.,
products/123/main.jpggenerates a cache atcache/products/123/300x300_main.jpg). - Zero-Touch Latte Integration: Automatically registers the
|thumbnailfilter for all Latte templates. - Graceful Failure: Supports global placeholders or native Latte
??null-coalescing for missing images.
Requirements
- PHP 8.1+
- Nette 3.0+ or 4.0+
Installation
Install the package via Composer:
composer require magnezi/nette-thumbnails