jimp-dev/jimp

[documentation] Not enough parameters on crop method

Aperta

#972 aperta il 22 dic 2020

 (0 commenti) (1 reazione) (0 assegnatari)JavaScript (785 fork)batch import
documentationhelp wantedsolution in issue

Metriche repository

Star
 (13.218 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor