Skip to content

Conversation

milanalexandre
Copy link

@milanalexandre milanalexandre commented Oct 5, 2025

fix #68

force minimum size of 1x1 to prevent crashes when 0 or Nan is entered.


dithering.js:30 Uncaught IndexSizeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.
    at dithering (dithering.js:30:25)
    at placeImage (script.js:415:5)
    at script.js:464:5
    at Array.forEach (<anonymous>)
    at Images.each (script.js:244:35)
    at updateAllImages (script.js:463:10)
    at updateInteger (script.js:471:3)
    at w.oninput (script.js:780:11)

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

Successfully merging this pull request may close these issues.

Error when size is empty
1 participant