jimp-dev/jimp

[documentation] Not enough parameters on crop method

開放

#972 建立於 2020年12月22日

 (0 則留言) (1 個反應) (0 位負責人)JavaScript (785 個分叉)batch import
documentationhelp wantedsolution in issue

倉庫指標

星標
 (13,218 顆星)
PR 合併指標
 (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);

貢獻者指南