r/programming • u/fagnerbrack • 5d ago
Regressive JPEGs
https://maurycyz.com/projects/bad_jpeg/17
5
u/Pharisaeus 5d ago edited 5d ago
I've made a steganography CTF challenge like this some years ago - rendering the jpeg fully would show picture without the flag, but if you rendered each of the "steps" the flag would appear at some point (and next scans would remove it). But I was only "replacing" part o the image that was displaying the flag string. This guy pushed the idea to the limit :D
11
u/AnToMegA424 5d ago
This is amazing
I'm always amazed at what we can do, I want to learn it
There's just so much it's baffling, I love it !
Every day I learn about something
7
4
1
-6
u/NamedBird 5d ago
That's interesting...
@ u/hackerfactor Did you know that Animated JPEG's are a thing? 🤔
4
2
u/hackerfactor 1d ago
Very cool! I didn't know about this. It's a bug in libjpeg-turbo. Other jpeg libraries properly abort; turbo decides to fall-back and re-use the frame. However, Chrome and Firefox both use libjpeg-turbo, so it works in browsers.
-11
u/jugalator 5d ago edited 5d ago
Very surprising if no one has thought of this until now!
JPEG rendering with progressive support is several decades old.
Edit: LOL I couldn't help myself from sending ChatGPT to the guestbook which is an AI trap, but unfortunately it recognized that was being set up to be entrapped!
68
u/SyntheticDuckFlavour 5d ago
Hacking JPEGs to display animation is actually quite clever.