r/SoftwareEngineering • • 12d ago

Regressive JPEGs

https://maurycyz.com/projects/bad_jpeg/
2 Upvotes

4 comments sorted by

1

u/Wagari_Nkurikiye 4d ago

if you mean the opposite of progressive rendering where an image degrades as bandwidth drops, thats usually handled by swapping asset resolutions rather than the encoding itself. what's the actual use case youre looking at?

1

u/fagnerbrack 4d ago

This is just a fun experiment from the author to use regressive jpeg for animations. Not practical

1

u/hinsonan 8d ago

I was incredibly confused at first. I thought the post said JRPG. I thought oh that's neat a rpg where you regress and get weaker. I then read the first comment summary of the article and was like did I stumble upon some new gaming system for JRPGs... No I'm retarded and can't read

0

u/fagnerbrack 12d ago

Nutshell Version:

Progressive JPEGs split data into "scans", each with a header that sets its YCbCr channels, DCT bin range and precision, so a partial download shows a blurry preview first. Since every scan picks its own spectral range, later scans can overwrite what's already drawn. Concatenate same-size images, strip the start-of-image, start-of-frame and end-of-image markers, and a slow connection flips between pictures. Decoders stop after a few scans, so the trick uses DC-only frames made with jpegtran: one scan each, at 1/16 resolution. Chrome renders about 90 of those with no ghosting, which packs a whole video into one image. It has no real use beyond rickrolls, because network delay alone sets the playback speed.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments