mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
341f575d2d
Encode photo/picture hints (and the default) as YUV420 instead of YUV444, keeping 444 for text/icon/drawing. Lossless stays 444. This roughly halves the encoder's peak memory (42 -> 27 MiB/MP) and the output size, while 444 remains available for sharp-edged content. A 3000x3000 image now needs ~239 MiB to encode, down from ~381 MiB (which sat right at the 384 MiB WASM cap). Closes #14987 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>