Skip to content

支持更多的图片处理方式

Compare
Choose a tag to compare
@moxuandi moxuandi released this 06 Aug 07:19
· 10 commits to master since this release

另可配置缩略图,裁剪图,水印等, 对图片做进一步处理; 详细配置请参考moxuandi\helpers\Uploader

'config' => [
    // 缩略图
    'thumb' => ['width' => 100],

    // 裁剪图像
    'crop' => ['width' => 100],

    // 添加边框
    'frame' => ['margin' => 20],

    // 添加图片水印
    'watermark' => ['watermarkImage' => 'water.png'],

    // 添加文字水印
    'text' => ['text' => '水印文字'],

    // 调整图片大小
    'resize' => ['width' => 100],
],