Quantcast
Channel: Create the least compressible picture - Code Golf Stack Exchange
Viewing all articles
Browse latest Browse all 2

Create the least compressible picture

$
0
0

"A picture is worth a thousand words"—so the old saying goes. The average word is about four characters long, so a picture conveys 4kB of information. But how much entropy, rather than information, can a picture convey?

Your task is to generate an image, exactly 4,000 bytes in size, with the highest entropy possible. You may use any language, libraries, or image format you choose, and you may output to the console or to a file so long as you upload your image here.

Scoring

Your score is the compression ratio (4000 ÷ compressed size) when your image is compressed with GNU tar version 1.28 and gzip version 1.6, using the DEFLATE algorithm and default settings — specifically, the command tar -czvf out.tar.gz image. The smallest compression ratio wins.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images