NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Regressive JPEGs (maurycyz.com)
vanderZwan 47 seconds ago [-]
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.
est 3 minutes ago [-]
> so playback is entirely dependent on network delay

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

robbak 58 minutes ago [-]
That is 1. Cursed, and 2. Definitely in the right place here.
alterom 12 minutes ago [-]
This is the stuff that I come here for.
korbatz 7 minutes ago [-]
If the online porn industry hasn't used it, it's probably worthless. Still funny, though.
cousin_it 2 hours ago [-]
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.
londons_explore 2 hours ago [-]
There are already webcams which do this- but they use a mime trick for 'multipart/x-mixed-replace'.

That's basically the server telling the client 'That data I just sent you, well now replace it with this new thing'.

No JavaScript needed, and can work with plain http and jpeg

SahAssar 7 minutes ago [-]
A lot of IP cameras already do this via https://en.wikipedia.org/wiki/Motion_JPEG
schobi 2 hours ago [-]
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!

xnx 2 hours ago [-]
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.
londons_explore 2 hours ago [-]
You can also deliberately have the server sending data at the right rate for the right playback time.

Easy enough to add a delay() each frame if your server is python/nodejs/PHP/whatever

LoganDark 24 minutes ago [-]
Safari just freezes in place until the image is entirely finished downloading.
solodynamo 38 minutes ago [-]
hmm interesting
Pijuspaul321 24 minutes ago [-]
Thanks for sharing
ilvez 43 minutes ago [-]
My jaw dropped. Very cool. Thanks for sharing.
luciana1u 14 minutes ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 08:29:38 GMT+0000 (Coordinated Universal Time) with Vercel.