function scaledImagePath
scaledImagePath(
srcPath: string,
width: ImageWidth,
format?: ScaledFormat
): string

Returns where the copy of the upload at srcPath scaled to width is kept, in format: under SCALED_DIR, at the upload's own path below UPLOADS_DIR.

Parameters

srcPath: string
optional
format: ScaledFormat = webp

Return Type

string

Usage

import { scaledImagePath } from "api/lib/ffmpeg.ts";