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

[Feature] Support for LZMA vtk files #3042

Open
skoloCFD opened this issue Mar 24, 2024 · 5 comments
Open

[Feature] Support for LZMA vtk files #3042

skoloCFD opened this issue Mar 24, 2024 · 5 comments
Labels
module: I/O type: feature request 💡 Desired capabilities / enhancements

Comments

@skoloCFD
Copy link

Feature Request

Given the smaller filesize of vtk encoded with LZMA, and the support in paraview/vtk-python for this compression type, native support in vtk.js could be useful.

Motivation and Detailed Description

See above

@skoloCFD skoloCFD added the type: feature request 💡 Desired capabilities / enhancements label Mar 24, 2024
@daker
Copy link
Collaborator

daker commented Mar 24, 2024

Thanks for the report, maybe if you could attach an example file in case someone wants to work on that.

@skoloCFD
Copy link
Author

skoloCFD commented Mar 25, 2024

Certainly! Here's a small example - zipped because github won't accept .vtp uploads.

vtp_LZMA_example.vtp.zip

When reading this in with vtk.js, the error message is quite clear:

Invalid compressor vtkLZMADataCompressor

@jourdain
Copy link
Collaborator

jourdain commented Mar 25, 2024

That will be easier to manage via wasm than plain JS.

@daker
Copy link
Collaborator

daker commented Apr 4, 2024

@jourdain what do you recommend to use ? i was thinking about using Lzip but this means creating a package and publish it on npm

@jourdain
Copy link
Collaborator

jourdain commented Apr 5, 2024

I was thinking you can get such reader today using itk-wasm. They have a vtp reader which already include LZMA compression support. You can see that by loading that example file within Glance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: I/O type: feature request 💡 Desired capabilities / enhancements
Projects
None yet
Development

No branches or pull requests

4 participants