65bdafa0ba
This PR improves our method for handling images, which is especially useful when using a local tldraw editor. Previously, we were only downsample images that were above the browser's maximum size. We now downsample all images. This will result in smaller images in almost all cases. It will also prevent very large jpeg images from being converted to png images, which could often lead to an increase in file size! ### Change Type - [x] `minor` — New feature ### Test Plan 1. Add some images (jpegs or pngs) to the canvas. ### Release Notes - Improved image rescaling. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
utils | ||
validate |