zbbok 发表于 2017-9-14 11:37:03

图片水印无法设置大小


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

Hex 发表于 2017-9-15 11:49:35

你的 CI 版本是?
页: [1]
查看完整版本: 图片水印无法设置大小