jimp-dev/jimp

[documentation] Not enough parameters on crop method

Open

#972 创建于 2020年12月22日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)JavaScript (785 fork)batch import
documentationhelp wantedsolution in issue

仓库指标

Star
 (13,218 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

(close it if you want bro)

On documentation for croping method : https://github.com/oliver-moran/jimp/tree/master/packages/plugin-crop

Exemple doesn't work : image.crop(150, 150);

It make error :

Error: w and h must be numbers at Jimp.throwError

Just add 2 parametter to make the job :

image.crop(50, 50, 150, 150);

贡献者指南