mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-01 09:05:18 -05:00
When calling `ctx.drawImage()`, if the image to be drawn has a width of height of 0, the call will raise. In this change, I have carefully reviewed the call hierarchy for all of our own code that calls this method and ensured that each call has error handling. Well, with one exception - I'm not sure how to handle errors in `invokeai/frontend/web/src/common/hooks/useClientSideUpload.ts`. But this should never be an issue in that hook - it's a Canvas problem.