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
415 Guests, 95 Users vapour, Ausome1, _InSane_, hemiptera, LordHelmet, BnE, N4g4c3N, chrbarrol, ThaKeeper, dark_void, th3punish3r, locust, c0re, iwanlearn, Anderl, ghostraider100, Ghostrider, eliking510, harsha2hack, NotMyOwn, Calumoo, MajorDeath, Rex_Mundi, sabre725, bhoang93, r!v3rTw!ggz, jarlskov, invas10n, snozzberries, Nusquam-Redono-Sapientia, data, zeth, psychomarine, yuka, DnA-Ender, 454447415244, Ultraminor, T-Metal, antibubbles, raven001, aVoid, Psiber_Syn, sirEgghead, Protagoras, niggletandco, Vahakn, Chaplin, BinaryShinigami, zoegeorgica, hacker807, Red_beard, eviscerator, TheFender, InjectioN, totalnoob, Posix, obrigadoo, cul8er, Mcasdf, teehee, Ops, Protest123, Blizer, gabel, Marian, Edika, zofy, Nasrudin, dochaley, TheRetech, j0sh, kcaz, klesco, cool.nik, Sand, SaMTHG, fawk3s, rajabaja, avalor, hettoo, mat_2010, barbseven, daandeveloper33, tommy1092, Likantrop7, sajan619, Knuppel, Distorted, Bloodmaster25, blink_212, buffer, apablo, d0cketts, Y34RZ3R0, freakazoid |
| |
|
|
|
|
|