Page 1 of 1

didactic green

Posted: Fri Jul 24, 2009 2:17 am
by Tokugawa
i sincerely didnt do it till the end, just started backwards, too lazy lol

didactic green

Posted: Wed Oct 07, 2009 3:35 pm
by justindm
used pil

Posted: Tue Oct 13, 2009 7:06 am
by matter
Good ol' bitmap :-)

Code !

Posted: Thu Feb 25, 2010 6:50 pm
by Mcord
C# anyone ? :)

Bitmap bm = new Bitmap("greenline.png");
for(var i=0;i< bm.Width;i++)
Console.Write((char)bm.GetPixel(i, 0).G);

Posted: Mon Sep 27, 2010 10:28 pm
by gowron
Matlab's also very nice: File -> Import Data, choose the image and you're almost done - just apply the char command on the data.

Posted: Mon Dec 13, 2010 9:34 pm
by hubert-cumberdale

Code: Select all

for(int i = 0; i<ImageIO.read(new File("greenline.png")).getWidth();i++)
  System.out.print((char)((bild.getRGB(i,0)& 0x00ff00) >> 8));
[/code]

Posted: Sat Sep 10, 2011 9:29 pm
by desert77
I used the gimp and saved as c source code, the text was simply readeble

Code: Select all

/* GIMP RGB C-Source image dump (greenline.c) */

static const struct {
  unsigned int 	 width;
  unsigned int 	 height;
  unsigned int 	 bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
  unsigned char	 pixel_data[84 * 1 * 3 + 1];
} gimp_image = {
  84, 1, 3,
  "\0t\0\0h\0\0e\0\0s\0\0e\0\0\40\0\0b\0\0y\0\0t\0\0e\0\0s\0\0\40\0\0a\0\0r"
  "... etc

Posted: Wed Oct 26, 2011 9:40 pm
by WakiMiko
using imagemagick:

Code: Select all

$ stream greenline.png -
these bytes are ascii text, as you obviously guessed. your answer is 'ilearnsogood'.

Posted: Thu Jan 05, 2012 12:49 am
by wynk
Four lines in Ruby:

Code: Select all

image = ChunkyPNG::Image.from_file('greenline.png')
for i in 0..image.width-1
	print ChunkyPNG::Color.g(image[i,0]).chr
end

Posted: Wed May 02, 2012 11:56 pm
by DragonEgghead
I saved it as a bitmap, then ran these two lines of Python, knowing that any invalid text would just show up as whitespace:

Code: Select all

with open('greenline.bmp') as a:
	print a.read()
Edit: Even better:

Code: Select all

with open('greenline.bmp') as a:
	print ''.join(i for i in a.read() if ord(i)>0 and ord(i)<128)
That way, it gets rid of a lot of the junk data.

Posted: Thu Jul 05, 2012 11:06 pm
by alakani
WakiMiko wrote:using imagemagick:

Code: Select all

$ stream greenline.png -
these bytes are ascii text, as you obviously guessed. your answer is 'ilearnsogood'.
That is so pimp, thank you for sharing. I just used PHP:

Code: Select all

$picture = imagecreatefrompng('greenline.png');
$width = imagesx($picture);

for ($x = 0; $x < $width; $x++) {
  $pixel = imagecolorat($picture, $x, 0);  
  $green = ($pixel >> 8) & 0xFF;
  echo chr($green);
}

Didactic Blue

Posted: Fri Aug 10, 2012 7:29 am
by chaoscrusade
Hello to all the hackers out there

I have decoded the whole picture but i don't know what to do with the output of that.

I will not post my decoded Stuff here since it could spoil.

Can someone who solved the challenge PM me and give me a hint?

btw what does ch2e mean?

(sorry for the bad english I'm from switzerland ) :)

edit: whoops looks like i got the flase thread :)

Posted: Sun Mar 03, 2013 11:46 am
by derplumps
my way:

wget png
convert png bmp
cat bmp