canvas-plus
canvas-plus copied to clipboard
I want to resize canvas with height
Hello,
in your documentation, you wrote that, in resize() function we can omitted 'width'. However, if I omit width, there is an error =>
[DEBUG] Resizing image to target size: NaNx600 {"mode":"fit","gravity":"center","background":"","orig_width":564,"orig_height":423,"target_width":null,"target_height":600,"dest_width":null,"dest_height":null,"canvas_width":null,"canvas_height":null,"x":null,"y":null} canvas-plus.js:4178 [DEBUG] Setting property: width: NaN canvas-plus.js:4178 [DEBUG] Setting property: height: NaN canvas-plus.js:4178 [DEBUG] Creating new canvas: NaNxNaN {"background":"(transparent)"} canvas-plus.js:4160 [ERROR][create] CanvasPlus: Invalid image dimensions: NaNxNaN
Thank you