logoalt Hacker News

Regressive JPEGs

325 pointsby vitauttoday at 3:14 AM29 commentsview on HN

Comments

Retr0idtoday at 9:27 AM

I did something very similar with progressive (adam7 interlaced) PNG: https://www.da.vidbuchanan.co.uk/adamation/image.png

> so playback is entirely dependent on network delay

Ultimately true, but I set up my server to send each "frame" separately, with a fixed delay between each. Each frame is small so unless your network is unusually slow, the timing is set by my server.

show 1 reply
robbaktoday at 7:31 AM

That is 1. Cursed, and 2. Definitely in the right place here.

show 1 reply
tdatoday at 8:54 AM

I wonder if and how you can use this for steganography, hiding data in plain sight. I bet most automated image analysis programs would only consider the final image. I sure some highschooler can use this to bypass their schools contentfilter

show 2 replies
cousin_ittoday at 6:20 AM

Nice! I think you can approximate timing somewhat, by making your web server create the "jpeg" on the fly and send it to the client in timed chunks. The source could even be a webcam, so the "jpeg" would go on forever.

show 3 replies
esttoday at 8:26 AM

> so playback is entirely dependent on network delay

You can use Service Worker to emulate a slow connection :)

Yokohiiitoday at 8:53 AM

Adjacent advice: I've recently played with opengl and jpeg turbo and I wanted to display images fast. I don't remember exact numbers, but enabling progressive for a jpeg was a significant slowdown for decoding. So if anyone like me is stuck with the old school advice that progressive is an nice to have, it's likely not. I personally don't remember any visual progressive image buildup in like decades, so it's not doing anything valuable at all.

show 3 replies
schobitoday at 6:43 AM

I tried to think about difficult ways to compute the high frequency coefficients to work from the "wrong" coefficients of the first image...

But this is clever - just smash them together. Low frequency of one image concatenated with high frequency from another. This works surprisingly well!

xnxtoday at 6:52 AM

Excellent hack! Should definitely be possible to make an animated gif to jpeg converter. I guess the animation could be slowed a little by repeating frames.

show 1 reply
vanderZwantoday at 8:28 AM

I wonder if you can do this in JPEG-XL. I know that that has actual animation support, but this would be a different thing.

show 1 reply
Grimblewaldtoday at 8:38 AM

insanity of content aside, that's a really nice website. Kudos.

korbatztoday at 8:22 AM

If the online porn industry hasn't used it, it's probably worthless. Still funny, though.

LoganDarktoday at 8:05 AM

Safari just freezes in place until the image is entirely finished downloading.

show 1 reply
solodynamotoday at 7:51 AM

hmm interesting

ilveztoday at 7:46 AM

My jaw dropped. Very cool. Thanks for sharing.

luciana1utoday at 8:15 AM

[dead]

Pijuspaul321today at 8:05 AM

Thanks for sharing