tldraw/packages
Steve Ruiz 65bdafa0ba
[fix] huge images, use downscale for image scaling (#2207)
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.
2023-11-14 08:21:32 +00:00
..
assets Update CHANGELOG.md [skip ci] 2023-11-10 10:49:37 +00:00
editor Revert back to the previous color. (#2210) 2023-11-14 08:21:24 +00:00
state Replace Atom.value with Atom.get() (#2189) 2023-11-13 11:51:22 +00:00
store Replace Atom.value with Atom.get() (#2189) 2023-11-13 11:51:22 +00:00
tldraw [fix] huge images, use downscale for image scaling (#2207) 2023-11-14 08:21:32 +00:00
tlschema Replace Atom.value with Atom.get() (#2189) 2023-11-13 11:51:22 +00:00
utils Update CHANGELOG.md [skip ci] 2023-11-10 10:49:37 +00:00
validate Update CHANGELOG.md [skip ci] 2023-11-10 10:49:37 +00:00