用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1316|回复: 1
收起左侧

[讨论/交流] 图片水印无法设置大小

[复制链接]
发表于 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 无法控制水印图片的大小,一直显示原图大小
发表于 2017-9-15 11:49:35 | 显示全部楼层
你的 CI 版本是?

本版积分规则