resources-image.ts#
2 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
2
symbols
1
variables
1
modules
Reference#
variableconst MAX_RESOURCE_PIXELS = 40_000_000Largest image decoded or produced at build time: 40 Mpx, about 160 MiB of RGBA.
Largest image decoded or produced at build time: 40 Mpx, about 160 MiB of RGBA.
Signature
export const MAX_RESOURCE_PIXELS = 40_000_000moduleresources-imageBuild-time PNG/JPEG pixel helpers for page resources. PNG is decoded and re-encoded for resize/crop. JPEG is encode-onl…
Build-time PNG/JPEG pixel helpers for page resources.
PNG is decoded and re-encoded for resize/crop. JPEG is encode-only so a format=jpeg transform can change the container after the pixel pass.