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

Investigate dynamic choices to export image support to ask directly Excalidraw #196

Open
bric3 opened this issue Jan 9, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bric3
Copy link
Owner

bric3 commented Jan 9, 2024

Currently supporting a new file for export is added manually.

E.g. there's a file that lists the supported types, however it doesn't seem to be publicly exposed.

From this code

https://github.com/excalidraw/excalidraw/blob/65047cc2cb59843a4305f9088d886edd9b933585/packages/utils/export.ts#L136-L153

  1. scene embedding only works on SVG and PNG
  2. supported type is driven by the browser support (canvas.toBlob)

So maybe there's a way to query the browser for supported types.


Note that recognizing a file as having an embedded scene is out of scope there as currently embedded scene is only supported on PNG and already implemented, for other file types it's not yet supported.

@bric3 bric3 added enhancement New feature or request help wanted Extra attention is needed labels Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant