仿造别人做的小项目(侵删)
<?php
//欢迎小萌新
function pixelfuck($url, $chars='ewk34543§G§$§$Tg34g4g', $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+=$shrpns)
imagestring($img,$weight,$x*$size,$y*$size, $chars{@++$p%$cc}, imagecolorat($resource, $x, $y));
return $img;
}
$url = 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1555579757392&di=a698ba2d459df8f5ec7807df67dc7cc9&imgtype=0&src=http%3A%2F%2Fimg.xinxic.com%2Fimg%2Fce08ad05c924c346.jpg';
$text = 'welcom to join us ,hahaha ------ we hope you will happy ';
Header('Content-Type: image/png');
imagepng(pixelfuck($url, $text, 1, 6));
https://www.16pic.com/psd/pic_1231381.html
?>