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

throws error when width or height is 0 #19

Open
neobdev opened this issue Jan 20, 2025 · 3 comments
Open

throws error when width or height is 0 #19

neobdev opened this issue Jan 20, 2025 · 3 comments

Comments

@neobdev
Copy link

neobdev commented Jan 20, 2025

just a little suggestion.

it throws error below
// Cannot read properties of undefined (reading '0')

const width = Math.max(Math.ceil(size[0]), 1);

@neobdev
Copy link
Author

neobdev commented Jan 20, 2025

if (settings.width && settings.height) {

@neobdev
Copy link
Author

neobdev commented Jan 20, 2025

thanks for the work btw. helped a lot

@jhildenbiddle
Copy link
Owner

Can you provide a description or (better) a demo showing how to recreate the error?

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

2 participants