|
// 图片水印
$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 无法控制水印图片的大小,一直显示原图大小 |
|