Const
The default TextureLoaderOptions.maximumExpansionRatio: 1000 decoded bytes per encoded byte (§96).
A photographic JPEG expands by roughly 10–30×, a flat-colour PNG by a few hundred; 1000 leaves honest content untouched while refusing the pathological ratios — 100 000× and up — that make a decompression bomb worth building.
The default TextureLoaderOptions.maximumExpansionRatio: 1000 decoded bytes per encoded byte (§96).
A photographic JPEG expands by roughly 10–30×, a flat-colour PNG by a few hundred; 1000 leaves honest content untouched while refusing the pathological ratios — 100 000× and up — that make a decompression bomb worth building.