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

Expose Scheme API publicly or allow access to encoded images #390

Open
ShaddyDC opened this issue Sep 25, 2023 · 0 comments
Open

Expose Scheme API publicly or allow access to encoded images #390

ShaddyDC opened this issue Sep 25, 2023 · 0 comments

Comments

@ShaddyDC
Copy link
Contributor

I'm writing a tool to convert glTF files to other file formats. When I ran into the issue of large images being unsupported (#388 ), I noticed that in most cases I can just copy the encoded image data as is without needing to do any decoding at all.

Currently, if you want to manually handle the encoded image data, you have to basically reimplement the logic for reading the schema and loading the encoded data.
It would be convenient if I could reuse the existing logic from the crate and just add the logic for dealing with the raw data myself.

Even more convenient would be a function to directly load and return the encoded_data and encoded_format of an image, so I don't have to duplicate the logic for loading base64 etc, but I'm not sure how common that use case is.

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