Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a economic way to output and reuse the images? #37

Open
zzm88 opened this issue Jul 24, 2021 · 0 comments
Open

Is there a economic way to output and reuse the images? #37

zzm88 opened this issue Jul 24, 2021 · 0 comments

Comments

@zzm88
Copy link

zzm88 commented Jul 24, 2021

If I output as JSON and reuse it, each file is hundreds of KB. It will consume too much space if there are a lot of images to be generated in production.
I think the problem is because outputting as JSON will generate too much duplicate information(every stroke's information etc.)
The necessary information is the position, size, rotation, etc... of each element. If we can only output this data and reuse it by rendering the actual SVG file with it, the size of each image will go down to less than 1KB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant