ca609a0fa5
This PR fixes a case where you couldn't upload images that are bigger than the browser's max canvas size. It does this by resizing them down if they're too big. ### Change Type - [x] `patch` — Bug fix ### Test Plan Easiest to test on one of our iPads. 1. Take a photo with the iPad camera. (they're big photos) 2. Insert the photo to the canvas with the 'insert media' tool. 3. It should appear on the canvas! (You might want to double check that your photo *doesn't* successfully upload on staging, to make sure it's big enough) - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Fixed big images being too big to get added to the canvas. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
utils | ||
validate |