图片水印无法设置大小
// 图片水印
$config['pic']['watermark']['wm_type'] = 'overlay';
$config['pic']['watermark']['wm_hor_alignment'] = $wm_hor_alignment;
$config['pic']['watermark']['width'] = $watermarkWidth;
$config['pic']['watermark']['height'] = $watermarkHeight;
$config['pic']['watermark']['wm_hor_offset'] = $watermarkPositionX;
$config['pic']['watermark']['wm_vrt_offset'] = $watermarkPositionY;
$config['pic']['watermark']['wm_overlay_path']= $waterImg;
$config['pic']['watermark']['source_image'] = $share_pic_file_path;
其中的 width和 height 无法控制水印图片的大小,一直显示原图大小 你的 CI 版本是?
页:
[1]