EG Information
Training Missions
Knowledge Bank
|
|
Enigma Group's Code Bank
Image to ASCIIBy: winkleer - Date Submitted: 2008-12-01 07:45:44 <font color="black" size="0.1px" style="line-height: 0.1px;"> <pre> <?php // Simple image to ASCII by winkleer function error() { die(" <br />nERROR. <br />n"); } $image = "moo.jpg"; // image here, in same dir { error(); } $x1=$info[0]; $y1=$info[1]; if($x1+$y1>5000) // too big m8 { error(); } $im = fopen($image, "r"); { $imagedata.=$foo; } // echo $im; // echo $imagedata; $imagedata=imagecreatefromstring($imagedata); { error(); } $y=0; { $x=0; { $rgb = imagecolorat($imagedata, $x, $y); $rgb = imagecolorsforindex($imagedata, $rgb); $total = $rgb['red']+$rgb['green']+$rgb['blue']; { } { } { } { } { } // echo $rgb['red']." ".$rgb['green']." ".$rgb['blue']." <br />n"; $x++; } $y++; } ?> </pre> </font>
|
| Return to
php category list |
|
|
Who's Online
487 Guests, 100 Users Nicid1, ckryptix, TheRetech, Diznablo, Ios, viper0i0, rabbidmind, Nasrudin, CollapsingWalls, mehtaparag, bitstrike, jnony, C, Nusquam-Redono-Sapientia, bazcrown, saifulfaizan, The End, Ultraminor, psychomarine, st3alth, themastersinner, pgmrlink, login, lionaneesh, ishkur88, mahraja, Mac, chekifr, gandalf88, Vap0r, t0ast, tantrum6226, BnE, Distorted, Psiber_Syn, Ausome1, invas10n, oldgoat, freedaysbecumei, BinaryShinigami, Rex_Mundi, Red_beard, Strobeflux, s0m3nak3dguy, Descent, teehee, machupicchu, Genetix, Anandarl, NotMyOwn, thegamerdude, Godzila, popo12341234, RedEvolution, velocity_b, myne17, teto111, aVoid, Central-Gsm, 1101, JackalReborn, InjectioN, h4lted, c0re, DisPater, markt4death, splatta, Jackowacko, saint556, Pyron2312, Azerion, howsens, white.hat.gone.bad, vazzilly, pwunkz, Inverted, QuarterCask, Infernoe11, deskata, cr4ck3rj4ck, Blizer, jasonmax, j0sh, gwenwavor, N4g4c3N, spizeyboy, Network X, Uino59, Jae Cee, ianFDK, saykov, medhaavee, zofy, demonkiller410, Stumble, SaMTHG, kishore, Raze, helasraizam, Venom1019 |
| |
|
|
|
|
|