@indiekit/endpoint-image
v1.0.0-beta.10
Published
Image resizing endpoint for Indiekit. Adds real-time image processing routes that can be used by your publication.
Downloads
22
Maintainers
Readme
@indiekit/endpoint-image
Image resizing endpoint for Indiekit. Adds real-time image processing routes that can be used by your publication.
Installation
npm i @indiekit/endpoint-image
Usage
Add @indiekit/endpoint-image
to your list of plug-ins, specifying options as required:
{
"plugins": ["@indiekit/endpoint-image"],
"@indiekit/endpoint-image": {
"mountPath": "/bild", // de-DE
},
}
Options
| Option | Type | Description |
| :---------- | :--------- | :----------------------------------------------------------------- |
| cache
| Function
| Keyv store. |
| me
| string
| Publication URL. Used as prefix to image paths. |
| mountPath
| string
| Path to image resizing endpoint. Optional, defaults to /image
. |