-
Notifications
You must be signed in to change notification settings - Fork 977
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
Standard MIME type for a Draco File? #761
Comments
Are you talking about putting Draco in a glTF file? |
Hi Frank,
No I was just uploading a bunch of them to Google Cloud Storage and thought
it would be good to label them accurately as the file specification didn't
allow file extensions. It might help someone decode them someday even if
other infrastructure is missing.
…On Mon, Apr 25, 2022, 12:29 PM FrankGalligan ***@***.***> wrote:
Hi @william-silversmith <https://github.com/william-silversmith>,
Are you talking about putting Draco in a glTF file?
—
Reply to this email directly, view it on GitHub
<#761 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATGQSLJWQ6WN5PMLSFIRG3VG3B4TANCNFSM5G6N2JAQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@william-silversmith So you uploaded .drc files? Or glTF files encoded with Draco? |
These were files encoded using https://github.com/seung-lab/DracoPy, which is a wrapper around the C++ draco codec. I believe that means they are |
OK thanks. Yeah it looks like DracoPy is just creating Draco compressed files. I.e. .drc files, not glTF Draco files. We can look into registering the mimetype, especially if more people are creating Draco compressed files. Though I think the server will need them to be named "*.drc" in order for the server to send the correct mime type in the future. |
Thanks Frank! Fwiw, I manually set the "Content-Type" field so the filename extension will have no impact on that. |
Hi,
I was wondering what the right way to designate a file as draco compressed on cloud storage. Would that be
Content-Encoding: draco
withContent-Type: model/mesh
or would it be something more likeContent-Type: model/mesh+draco
? I've seen one website recommendContent-Type: application/x.draco
but that seems too informal for a relatively popular encoding type.EDIT: Did some reading here: KhronosGroup/glTF#412 Seems
model/mesh+draco
would probably not be allowed. At leastmodel/x.draco
would be an improvement overapplication/x.draco
.Thanks!
The text was updated successfully, but these errors were encountered: