parseImageWidth(raw: string | null): ImageWidth | null
Returns the width a ?w= value asks for, snapped to IMAGE_WIDTHS,
or null when it is absent or not a positive number, which asks for the image
as it is.
ImageWidth | null
parseImageWidth(raw: string | null): ImageWidth | null
Returns the width a ?w= value asks for, snapped to IMAGE_WIDTHS,
or null when it is absent or not a positive number, which asks for the image
as it is.
ImageWidth | null
import { parseImageWidth } from "shared/image.ts";