magnezi/nette-thumbnails

On-the-fly thumbnail generation and caching extension for Nette Framework.

Maintainers

Package info

github.com/magnezi/nette-thumbnails

Type:nette-extension

pkg:composer/magnezi/nette-thumbnails

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-04-09 07:32 UTC

This package is auto-updated.

Last update: 2026-04-09 07:49:15 UTC


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.jpg generates a cache at cache/products/123/300x300_main.jpg).
  • Zero-Touch Latte Integration: Automatically registers the |thumbnail filter 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