function scalableImage
scalableImage(head: Uint8Array): ScalableImage | null

Returns how to scale the image whose first IMAGE_HEAD_BYTES are head, or null when it is to be served as it is: an animated WebP, which ffmpeg can't read, or anything but a JPEG, PNG, GIF, WebP or BMP.

Parameters

Return Type

Usage

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