Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh_images/src/types.ts>ImagesPluginOptions

Fresh plugin for manipulating images on-the-fly.
Latest
interface ImagesPluginOptions
import { type ImagesPluginOptions } from "https://deno.land/x/fresh_images@v0.3.0/src/types.ts";

Options for the Images plugin

Properties

optional
route: string

The route exposed to the client

optional
realPath: string

The absolute path to the image file directory

optional
transformers: Record<string, TransformFn | TransformRoute>

A map of image transformation functions

optional
build: (props: Omit<ImagesPluginOptions, "build">) => Promise<void>

Ahead of time build function

optional
middleware: Partial<ImageMiddlewareOptions>

Options for the image middleware