Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to resize canvas with height #4

Open
shady-ladow opened this issue Oct 3, 2019 · 0 comments
Open

I want to resize canvas with height #4

shady-ladow opened this issue Oct 3, 2019 · 0 comments

Comments

@shady-ladow
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant