polotno-project / polotno-board

Roadmap and bug-tracker for the Polotno project.
https://polotno.dev/
9 stars 1 forks source link

Keep image&svg urls in polotno json #28

Closed iamsterdam800 closed 2 years ago

iamsterdam800 commented 2 years ago

I want to save the design on server in json format. Current json has all images (except the background) and svg's embedded in base64 as data urls. This makes it a very big file. Is it possible to keep the original (unsplash) urls and have a flag on export e.g. toJSON(withOriginalUrls: true) to produce json with the original urls?

lavrton commented 2 years ago

The Unsplash images are saved as URL. Only SVG are embeds.

lavrton commented 2 years ago

Also by default, polotno is using base64 for uploaded images. But you can overwrite such behavior.

The issue is not clear for me. Can you provide more info?

iamsterdam800 commented 2 years ago

Indeed, the embedded images were not from unsplash, but the uploads. And I can save them seperately on the server. Then there’s no issue! Closing.