The forum has been archived
While the forum may not be active, the community still lives on Discord! Click here to join us.
While the forum may not be active, the community still lives on Discord! Click here to join us.
Solve This Image
- Sebastian Lawe
- Moderator
- Posts: 2534
- Joined: October 17th, 2012, 7:58 am
- Design Competitions Voted: 0
- Contact:
Solve This Image
This image contains a hidden message.
This is your only clue: http://en.wikipedia.org/wiki/Web_colors
This is your only clue: http://en.wikipedia.org/wiki/Web_colors
- Sebastian Lawe
- Moderator
- Posts: 2534
- Joined: October 17th, 2012, 7:58 am
- Design Competitions Voted: 0
- Contact:
- Sebastian Lawe
- Moderator
- Posts: 2534
- Joined: October 17th, 2012, 7:58 am
- Design Competitions Voted: 0
- Contact:
- Entity
- Editorial Staff
- Posts: 3097
- Joined: November 29th, 2012, 9:41 pm
- Design Competitions Voted: 1
- Sebastian Lawe
- Moderator
- Posts: 2534
- Joined: October 17th, 2012, 7:58 am
- Design Competitions Voted: 0
- Contact:
I'll give a clue. Hexadecimal encoding can be used to encode just about anything. It just so happens hexadecimal values are used for colours too.Entity wrote:Are there intentionally three different shades of each color in the image?
I spent an hour researching and then writing a program to calculate all 4+ billion permutations and they were all gibberish!
They all look something like this:
Zik!qskuskqs!qscis) {ku!cis{ {smskmk!mksikke)!Qk!ycku)!I!kq{!is.
- Entity
- Editorial Staff
- Posts: 3097
- Joined: November 29th, 2012, 9:41 pm
- Design Competitions Voted: 1
Yes I know But each stripe in the above image (when you zoom in) has 2-4 different colors/hex values.Sebastian Lawe wrote:I'll give a clue. Hexadecimal encoding can be used to encode just about anything. It just so happens hexadecimal values are used for colours too.
I calculated all 4 billion of the possible permutations of these hex values (as ASCII characters) and none of them made any sense
- Sebastian Lawe
- Moderator
- Posts: 2534
- Joined: October 17th, 2012, 7:58 am
- Design Competitions Voted: 0
- Contact:
I have a feeling the image got compressed by the image host (its supposed to be a solid colour). I can't seem to re-translate it either. I'll throw you a bone and output another image.Entity wrote:Yes I know But each stripe in the above image (when you zoom in) has 2-4 different colors/hex values.
I calculated all 4 billion of the possible permutations of these hex values (as ASCII characters) and none of them made any sense
- Sebastian Lawe
- Moderator
- Posts: 2534
- Joined: October 17th, 2012, 7:58 am
- Design Competitions Voted: 0
- Contact:
- Sebastian Lawe
- Moderator
- Posts: 2534
- Joined: October 17th, 2012, 7:58 am
- Design Competitions Voted: 0
- Contact:
- DvChayz
- Well-Known Member
- Posts: 2922
- Joined: December 14th, 2012, 11:11 pm
remember when i solved the other one (http://onemoreblock.com/forum/threads/y ... post-19834)
good times
good times
- kroltan
- Developer
- Posts: 285
- Joined: October 8th, 2012, 6:57 pm
- Design Competitions Voted: 1
Post these things on Programming puzzles and Code Golf!
- kroltan
- Developer
- Posts: 285
- Joined: October 8th, 2012, 6:57 pm
- Design Competitions Voted: 1
Got it!
The solution code, in Python.
I didn't solve it alone, Seb helped me by hinting that it's a string of ASCII codes, that may or not have 3 digits.
I now challenge you to discover the secrets of the following image (download it because it's tiny):
The answer to life, the universe and everything may be doubled and subtracted 20 for a useful hint...
The solution code, in Python.
I didn't solve it alone, Seb helped me by hinting that it's a string of ASCII codes, that may or not have 3 digits.
Code: Select all
def split_chars(string):
def getc(i, s):
return string[i:i+s]
result = []
index = 0
while index < len(string):
if int(getc(index, 3)) >= 256:
result.append(getc(index, 2))
index += 2
else:
result.append(getc(index, 3))
index += 3
return result
if __name__ == '__main__':
number = "10411611611258474711911911946121111117116117981014699111109471199711699104631186166839777488785815286115"
parts = split_chars(number)
chars = map(lambda x: chr(int(x)), parts)
string = "".join(chars)
print(string)
The answer to life, the universe and everything may be doubled and subtracted 20 for a useful hint...
- Entity
- Editorial Staff
- Posts: 3097
- Joined: November 29th, 2012, 9:41 pm
- Design Competitions Voted: 1
The quick brown fox jumps over the lazy dog to shoot lasers at Martian aliens who plan on destroying Earth with radioactive cookies and evaporating all the oceans with body heat. Cool, huh?
Had to ask kroltan for some clues, and then turned out it was just a silly error in my code xP
My ruby code:
Code: Select all
require 'chunky_png'
require 'base64'
image = ChunkyPNG::Image.from_file('image.png')
base64Encoded = ""
(0..image.dimension.height-1).each do |y|
(0..image.dimension.width-1).each do |x|
c = ChunkyPNG::Color.r(image[x,y])
if c != 0
base64Encoded += c.chr
end
end
end
print Base64.strict_decode64(base64Encoded) + "\n"