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

貢獻者指南