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

x/fresh_images/mod.ts>default

Fresh plugin for manipulating images on-the-fly.
Latest
function default
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

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 },
    }),
  ],
});

Returns

Images plugin