在 qrimage.php 中,插入以下行:
ImageColorTransparent($target_image, $col[0]);
如下图:
这将为您修复它.
ImageCopyResized($target_image, $base_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH); ImageColorTransparent($target_image, $col[0]); ImageDestroy($base_image);