php 之将图片转换base64编码(为百度ocr做准备,解决 image format error)

代码实现 <?php header('Content-type:text/html;charset=utf-8'); //读取图片文件,转换成base64编码格式 $image_file = 'https://profile.csdnimg.cn/F/1/5/3_weixin_44797182'; // 这里也能够填写一个连接或者本地路径均可以 $image_info = getimagesi
相关文章
相关标签/搜索