jimp-dev/jimp

[documentation] Not enough parameters on crop method

オープン

#972 opened on 2020/12/22

 (0 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (785 件のフォーク)batch import
documentationhelp wantedsolution in issue

Repository metrics

Stars
 (13,218 個のスター)
PR merge metrics
 (PR metrics pending)

説明

(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);

コントリビューターガイド