No description
Find a file
Orange Mug 77175a9dc4
Added pHYs to import/export of png images (#1200)
Added the following

 - Always export pngs with a pixel-ratio of `2`
- Added the `pHYs` png metadata chunk describing the pixel ratio so it
opens with the correct size
 - When importing PNGs read the `pHYs` chunk for the sizing info
 
All the exporting is done via just modifying the bytes from the browsers
native image handling.


https://user-images.githubusercontent.com/235915/234309015-19f39f3a-66ce-4ec2-b7d0-b34a07ed346b.mov

I've also added `ANALYZE=true` option to get the build metadata from
esbuild on boot of `yarn dev` which allow me to see the bundle size info
in https://esbuild.github.io/analyze/

![esbuild github
io_analyze_](https://user-images.githubusercontent.com/235915/234310302-c6fe8109-c82d-480a-8c65-c7638b09e71e.png)

You can see that `crc` adds about `4.4kb`

<img width="280" alt="Screenshot 2023-04-25 at 15 33 26"
src="https://user-images.githubusercontent.com/235915/234310669-99e3e787-ddca-4ad2-81cf-b4a541631d62.png">

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-04-29 22:10:01 +00:00
.github lite: tweak lockfile name 2023-04-25 12:01:38 +01:00
.husky lite: standalone? 2023-04-25 12:01:38 +01:00
.yarn transfer-out: transfer out 2023-04-25 12:01:25 +01:00
apps Added pHYs to import/export of png images (#1200) 2023-04-29 22:10:01 +00:00
assets transfer-out: transfer out 2023-04-25 12:01:25 +01:00
config [lite] upgrade lazyrepo (#1198) 2023-04-25 14:32:17 +01:00
packages Added pHYs to import/export of png images (#1200) 2023-04-29 22:10:01 +00:00
scripts derived presence state (#1204) 2023-04-27 18:03:19 +00:00
.eslintignore transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.eslintplugin.js transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.eslintrc.js transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.gitignore Added pHYs to import/export of png images (#1200) 2023-04-29 22:10:01 +00:00
.prettierignore transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.prettierrc transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.yarnrc.yml lite: tweak lockfile name 2023-04-25 12:01:38 +01:00
CODE_OF_CONDUCT.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
CONTRIBUTING.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
lazy.config.ts derived presence state (#1204) 2023-04-27 18:03:19 +00:00
lerna.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
LICENSE transfer-out: transfer out 2023-04-25 12:01:25 +01:00
package.json derived presence state (#1204) 2023-04-27 18:03:19 +00:00
public-yarn.lock Added pHYs to import/export of png images (#1200) 2023-04-29 22:10:01 +00:00
README.md Alex/test (#1202) 2023-04-25 17:17:31 +01:00

tldraw-lite

test test

tldraw