jimp-dev/jimp

[documentation] Not enough parameters on crop method

Open

#972 geöffnet am 22. Dez. 2020

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (785 Forks)batch import
documentationhelp wantedsolution in issue

Repository-Metriken

Stars
 (13.218 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide