scaleImage(): Promise<void>
Writes a copy of an image at most width wide, never wider than the image
itself, as a WebP unless format names another. WebP keeps a PNG's
transparency and a GIF's animation, at a fraction of either's bytes.
scaleImage(): Promise<void>
Writes a copy of an image at most width wide, never wider than the image
itself, as a WebP unless format names another. WebP keeps a PNG's
transparency and a GIF's animation, at a fraction of either's bytes.
import { scaleImage } from "api/lib/ffmpeg.ts";