MewPurPur / GodSVG

A vector graphics application for structured SVG editing, available on all major desktop platforms. Currently in late alpha.
https://godsvg.com
MIT License
1.29k stars 62 forks source link

Implement Web Support for Reference Images #752

Open Qainguin opened 5 months ago

Qainguin commented 5 months ago

Add support for reference images for web import. Currently, it hides the reference image button for web users, which is more of a band-aid than anything.

Qainguin commented 5 months ago

I tried doing some work on this and I got to the point of where I could open the import native dialog but the problem was that loading it would not return a PackedByteArray with JavaScript but it would return a string.

MewPurPur commented 5 months ago

I don't know how to do this.

Qainguin commented 5 months ago

We might just have to shelve it for now, at least until someone knows how to. Keep the issue up though, so if someone knows how to do it they can do it.

Kiisu-Master commented 5 months ago

Ig this would be a task for me as i added svg opening on web

Qainguin commented 3 weeks ago

Ideally, a PR for this would also replace the JavaScriptBridge eval with get_interface to make it easier to read.