variable uploadImageTargets

Transcode an uploaded image to WebP, one stored file per target, returned in the order of targets.

The image pipeline is about 1MB of codec wasm, so it is imported here on the first upload and never at cold boot.

Type

ImageTargetTranscoder<string[]>

Usage

import { uploadImageTargets } from "docs/embed.ts";