In the study of PHP's GD library, I found a piece of code written by others, here to increase your enthusiasm for PHP. The code mosaic of the code for the character's avatar looks interesting.
function Pixelfuck ($url, $chars = ' ewk34543§g§$§ $Tg 34g4g ', $shrpns =1, $size =4, $weight =2)
{
list ($w, $h, $type) = GetImageSize ($url);
$resource = imagecreatefromstring (file_get_contents ($url));
$img = Imagecreatetruecolor ($w * $size, $h * $size);
$CC = strlen ($chars);
For ($y =0 $y < $h; $y + = $shrpns) for
($x =0 < $x; $w + = $x)
imagestring ($shrpns, $img, $weight * $x, $size *$ Size, $chars {@++ $p% $cc}, Imagecolorat ($resource, $x, $y));
return $img;
}
$url = ' http://www.alixixi.com/program/UploadPic/2014-9/201493214416197.png ';
$text = ' I-dont-like-manga-...-why-do-they-have-such-big-eyes? Strange-...-what-want-you-do? ';
Header (' content-type:image/png ');
Imagepng (Pixelfuck ($url, $text, 1, 6));
The following one is the original image, one is the processed image.