$logo = ' logo.png ';
if (Is_file ($logo))
{
$QR = imagecreatefromstring (file_get_contents ($filename));
$logo = imagecreatefromstring (file_get_contents ($logo));
$QR _width = Imagesx ($QR);
$QR _height = Imagesy ($QR);
$logo _width = Imagesx ($logo);
$logo _height = Imagesy ($logo);
$logo _qr_width = $QR _width/5;
$scale = $logo _width/$logo _qr_width;
$logo _qr_height = $logo _height/$scale;
$from _width = ($QR _width-$logo _qr_width)/2;
Imagecopyresampled ($QR, $logo, $from _width, $from _width, 0, 0, $logo _qr_width, $logo _qr_height, $logo _width, $logo _ height);
Imagepng ($QR, $filename);
}
http://www.bkjia.com/PHPjc/737700.html www.bkjia.com true http://www.bkjia.com/PHPjc/737700.html techarticle $logo = ' logo.png ', if (Is_file ($logo)) {$QR = Imagecreatefromstring (file_get_contents ($filename)); $logo = Imagecreatefromstring (file_get_contents ($logo)); $QR _width = imagesx ($QR ...