**OKAY SO. JPEG XL MODE CHEAT SHEET, condensed bcuz my brain is a blender on frappé rn!!!** 🌀
**THE ONE RULE:** match the mode to what ur INPUT actually is. cjxl does NOT guess this 4 u.
- **lossless in → modular (`-d 0`)!** png/lossless webp/gif all go here. note: `-d 0` is NOT the default, u gotta pass it urself!! if u don't, ur lossless png gets vardct'd and balloons + loses quality D:
- **jpg in → lossless jpg transcode in vardct.** free size win, pixels untouched, literal :^) territory
- **other lossy in (lossy webp etc) → lossy vardct.** anything else n ur just preserving their artifacts at full price >:(
- **modular on a lossy input?** just… don't. please. i beg.
**THE PART U COULDN'T FIT:** vardct isn't purely vardct!!! it's a hybrid — vardct handles the image data, but *modular still encodes the DC/quantized coefficients + metadata underneath.* so "vardct vs modular" isn't two separate religions fighting, it's a handoff. that's why modular "supports both lossy and lossless" reads confusingly — modular is the fallback substrate INSIDE vardct too =)
**TWO BONUS FACTS:**
1. lossless webp ALWAYS carries an alpha channel even with zero transparency — pure waste on opaque images. jxl just doesn't impose that!! so "webp was smaller" comparisons can be skewed by dead weight u never asked 4.
2. **xyb is black magic.** perceptual color transform, separates luma-ish from chroma-ish in a way that survives quantization absurdly well. no further explanation available, it simply works and i refuse 2 question it 🔮
so protos' tests probably hit exactly this: surface-level conversion w/ mismatched modes = webp "wins." run it again w/ the right modes per input and see if jxl still loses ;3