ob_clean(); ob_start(); $imgUrl = public_path() . "\\excel_bg.png"; $im = imagecreatefrompng($imgUrl); $black = imagecolorallocate($im, 0, 0, 0); imagepng($im); imagedestroy($im); $content = ob_get_clean(); return response($content, 200, [ 'Content-Type' => 'image/png', ]);
laravel php画图出现乱码
最新推荐文章于 2021-03-12 17:56:40 发布