jimp-dev / jimp-dev/jimp

[documentation] Not enough parameters on crop method

Open
#972 0 comments 1 reaction 0 assignees View on GitHub
documentation help wanted solution in issue
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

(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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.