pulsundzeit/kirby-thumb-api

Kirby plugin that provides an endpoint to create thumbnails on-the-fly

v1.0.1 2022-03-21 18:30 UTC

This package is not auto-updated.

Last update: 2024-05-15 02:56:21 UTC


README

A Kirby plugin that provides an endpoint to create thumbnails on-the-fly.

Installation

Manual

Download and copy this repository to /site/plugins/kirby-thumb-api of your Kirby installation.

Composer

composer require pulsundzeit/kirby-thumb-api

Usage

The plugin exposes an custom endpoint at /thumb that returns a thumbnail based on the supplied parameters.

Example:

  • thumb/myfiles/myimage.jpg?w=1000&f=webp → returns image with a width of 1000px in the WebP format

Available parameters

SettingParameterOptions
Widthwnumber
Heighthnumber
Formatfstring
Qualityqnumber