interface ScalableImage
extends ImageTraits

Returned by scalableImage, for scaleImage.

Properties

compat: "jpg" | "png"

The format of its copy for a reader without WebP: a JPEG, or a PNG for an image that may be transparent, which a JPEG would fill with black.

Usage

import { type ScalableImage } from "api/lib/upload.ts";