pulsundzeit/kirby-thumb-api

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

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Installs: 86

Dependents: 0

Suggesters: 0

Security: 0

Type:kirby-plugin

pkg:composer/pulsundzeit/kirby-thumb-api

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

This package is not auto-updated.

Last update: 2024-10-30 05:04:43 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