搜索中心
搜索中心 搜索快照

PHP工具类 - 图片工具类 ImageUtil

pngBase64 将图片文件转为Base64

ImageUtil::pngBase64( $path )

  • 参数:$path string 图片路径
  • 返回:string|null Base64字符串

toWidth 调整图片宽度

ImageUtil::toWidth( $path, $width )

  • 参数:$path string 图片路径
  • 参数:$width integer 目标宽度
  • 返回:string 处理后的图片路径
查看原文
QQ
微信
客服