There's something very special hidden in this image. You will definitely know when you find it.

special image

(I know Stack Exchange lossily compresses images but I've checked and no pixels have been altered.)

Finding traces of the secret might not be that hard. The ideal answer will point to the Stack Exchange question that I took data from to help generate this image (and possibly point to another that can help "decode" it).


I can reveal the secret with this 20 line Python program. I've replaced the most telling bits with ???:

from PIL import Image
i = Image.open('hidden.png')
d = i.load()
x, y = ???, ???
while ???:
    oldX, oldY = x, y
    if ???:
    elif ???:
    elif ???:
    d[oldX, oldY] = (0, 0, 0)
for x in range(i.size[0]):
    for y in range(i.size[1]):
        if ???:
            d[x, y] = (255, 255, 255)

  • $\begingroup$ Was the original file a .png also? $\endgroup$
    – Bobson
    Mar 16, 2015 at 16:10
  • $\begingroup$ Does the answer have anything to do with changing bases? $\endgroup$
    – rr-
    Mar 16, 2015 at 17:36
  • $\begingroup$ @Bobson Not really. You may find a png that is similar to the original but you won't find an exact original because I had to remake it to make sure it was pixel perfect. $\endgroup$ Mar 16, 2015 at 19:20
  • $\begingroup$ @rr Nope, it doesn't $\endgroup$ Mar 16, 2015 at 19:22

2 Answers 2


This image represents instructions for a snake that fills the visited pixels with black paint.

  • Red color means "go right"
  • Aqua color means "go left"
  • Blue color means "go up"
  • Green color means "go down"

The snake starts at the center of the image. (Edit: looks like it can start anywhere but the borders. The images below were produced using center as the starting point.)
The snake stops as soon as it proceeds out of the image boundaries.
After we're done, we fill remaining unvisited pixels with white paint.

What is interesting is what happens if the snake visits a block that was already visited: it turns out that no matter if we go left, right, down or up, we still see the result pretty clearly.

Going left: Going left Going down: Going down Going right: Going right Going up: Going up

from PIL import Image

colors = [(255, 0, 0), (0, 255, 255), (127, 0, 255), (127, 255, 0)]

i = Image.open('hidden.png')
d = i.load()
w, h = i.size
x, y = w >> 1, h >> 1
while x >= 0 and y >= 0 and x < w and y < h:
    oldX, oldY = x, y
    if d[x,y] == colors[0]:
        x += 1
    elif d[x,y] == colors1:
        x -= 1
    elif d[x,y] == colors2:
        y += 1
    elif d[x,y] == colors3:
        y -= 1
    elif d[x,y] == (0,0,0):
        y -= 1 #or whatever
        raise Exception('Bad color: ' + str(d[x,y]))
    d[oldX, oldY] = (0, 0, 0)

for x in range(w):
    for y in range(h):
        if d[x, y] != (0, 0, 0):
            d[x, y] = (255, 255, 255)

  • $\begingroup$ This is essentially it :D The pixels that aren't part of the snake are actually random colors (of the 4) so there's no guarantee that they will lead to the snake. Good job! (Though I'll still wait for someone to figure out which two SE questions I hinted at.) $\endgroup$ Mar 17, 2015 at 8:27
  • $\begingroup$ You shouldn't create an answer which is ALL spoiler tags without any significant text outside. $\endgroup$ Mar 18, 2015 at 12:30

Putting it through a magic eye finder gives a faint image of a smiling face, perhaps the Mona Lisa.

enter image description here

  • 4
    $\begingroup$ Wow. That algorithm has no (intentional) relation to the image. I'm surprised it shows so much. $\endgroup$ Mar 16, 2015 at 4:46
  • 17
    $\begingroup$ Wait? That is not the solution? You are saying this is meant to represent something else, but by chance also contains Mona Lisa? $\endgroup$
    – Lars Ebert
    Mar 16, 2015 at 8:28
  • $\begingroup$ Well it depends on how that website works. It might output some random things. $\endgroup$ Mar 16, 2015 at 13:23
  • $\begingroup$ This code golf question could be what Calvin is referencing, but I don't understand what he wants to do with it. (It is #5 on the highest vote list.) $\endgroup$
    – Len
    Mar 16, 2015 at 18:30
  • $\begingroup$ @LarsEbert Mona Lisa is the hidden thing, but there's a simpler way to reveal her in a much crisper form. $\endgroup$ Mar 16, 2015 at 19:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.