1 | $thumbUploader = new \yan\plugins\thumbUploader\ThumbUploader([ 'savePath' => realpath (__DIR__. '/../../data/tmp' ), 'saveUrl' => '/data/tmp' , 'extensions' =>[ 'jpg' , 'png' ], ]); |
1 | $thumbUploader = new \yan\plugins\thumbUploader\ThumbUploader([ 'savePath' => realpath (__DIR__. '/../../data/tmp' ), 'saveUrl' => '/data/tmp' , 'extensions' =>[ 'jpg' , 'png' ], 'maxSize' =>80*1024, 'minWidth' =>400, 'maxWidth' =>800, 'minHeight' =>400, 'maxHeight' =>800, ]); |
1 | $thumbUploader = new \yan\plugins\thumbUploader\ThumbUploader([ 'savePath' => realpath (__DIR__. '/../../data/tmp' ), 'savePlan' =>[ 'big' =>[200,200,\yan\base\image\YanImage::NONE], 'small' =>[100,100,\yan\base\image\YanImage::NONE], ], 'saveUrl' => '/data/tmp' , 'extensions' =>[ 'jpg' , 'png' ], ]); |