import { default } from "https://deno.land/x/fresh_images@v0.3.0/mod.ts";
A Fresh plugin which adds image transformation routes to your static directory
Examples
Example 1
Example 1
import { defineConfig } from "$fresh/server.ts";
import ImagesPlugin from "fresh_images/mod.ts";
import { resize } from "fresh_images/transformer.ts";
export default defineConfig({
plugins: [
ImagesPlugin({
publicPath: "/img",
transformers: { resize },
}),
],
});
Parameters
unnamed 0: ImagesPluginOptions