tldraw/packages
Lu Wilson ca609a0fa5
Fix not being able to upload massive images (#2095)
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.
2023-10-17 12:54:40 +00:00
..
assets Add offline indicator (also to top zone example) (#2083) 2023-10-17 08:32:41 +00:00
editor [fix] remove findLast calls (#2081) 2023-10-17 08:23:59 +00:00
state Update CHANGELOG.md [skip ci] 2023-10-11 10:42:50 +00:00
store bump nanoid (#2078) 2023-10-16 08:44:12 +00:00
tldraw Fix not being able to upload massive images (#2095) 2023-10-17 12:54:40 +00:00
tlschema bump nanoid (#2078) 2023-10-16 08:44:12 +00:00
utils Update CHANGELOG.md [skip ci] 2023-10-11 10:42:50 +00:00
validate Update CHANGELOG.md [skip ci] 2023-10-11 10:42:50 +00:00