Skip to content

Instantly share code, notes, and snippets.

@scotthaleen
Last active June 10, 2024 15:00
Show Gist options
  • Save scotthaleen/32f76a413e0dfd4b4d79c2a534d49c0b to your computer and use it in GitHub Desktop.
Save scotthaleen/32f76a413e0dfd4b4d79c2a534d49c0b to your computer and use it in GitHub Desktop.
Smallest Valid JPG
# http://web.archive.org/web/20111224041840/http://www.techsupportteam.org/forum/digital-imaging-photography/1892-worlds-smallest-valid-jpeg.html
FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 48 00 48 00 00 FF DB 00 43 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF C2 00 0B 08 00 01 00 01 01 01 11 00 FF C4 00 14 10 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF DA 00 08 01 01 00 01 3F 10
# Base64 Encoded
/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wgALCAABAAEBAREA/8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQABPxA=
@divinity76
Copy link

nope, that is 134 bytes, it is possible to create a valid 107 byte jpeg: https://github.com/mathiasbynens/small/blob/master/jpeg.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment