encode — what did your encoder actually do?
Point it at a JPEG or an AVIF and it reads the container: quantization
tables, the scan script, component sampling factors, the av1C record. No
pixels are decoded, which is the only reason this can run in a Worker at
all.
curl 'aadhar.sh/encode?url=https://example.com/photo.jpg'
── what it will tell you ───────────────────────────────────────────────────
chroma JPEG 4:4:4 is a byte tax; AVIF 4:4:4 wins at equal bytes
scan baseline vs progressive, and how many scans
quality estimated against the IJG Annex K table, with the deviation sho…
depth 8-bit vs 10-bit AVIF — the latter measured ~6% smaller here, fr…
metadata ICC/EXIF/XMP riding along on a thumbnail
Quality is an ESTIMATE and the frame says so. There is no quality number in
a JPEG, only quantization tables, and every tool that prints one is
inferring it. The method and its deviation are shown so the number can be
argued with.
&url= read an image