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
Requires
- php: >=7.4
- getkirby/composer-installer: ^1.1
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
| Setting | Parameter | Options |
|---|---|---|
| Width | w | number |
| Height | h | number |
| Format | f | string |
| Quality | q | number |