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

Exposing original image tile bytes #3440

Open
ebremer opened this issue Sep 18, 2019 · 5 comments
Open

Exposing original image tile bytes #3440

ebremer opened this issue Sep 18, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@ebremer
Copy link

ebremer commented Sep 18, 2019

I've been converting a copius number of VSI images to bigtiff as our toolings won't work with VSI. I know bioformats insists on decoding and re-encoding image tiles when converting but since no loss of quality is of paramount importance, we use LZW compression which has the undesired affect of ballooning the image to almost 10x it's size. I was going to use JPG as a comparison to see if the image quality changed dramatically which spawned #3370.
I tried an experiment and modified CellSenseReader.java to expose the original tile bytes. I was able to retrieve the VSI tiles and route them into a file tile.jpg. If the tile size is kept the same, it doesn't seem that there is any reason why the decoding/re-encoding process needs to occur making for a faster conversion from VSI->TIFF and possible other image formats. (unless I am missing something)

So here is the big ask, would it be difficult to augment the general Bioformats API to expose the original tile bytes and then just route them pass the decode/encode process of image conversion providing the tile size is not changed into the new tile "framing", tiff in this case?

@melissalinkert
Copy link
Member

#3992 is some initial work on this topic (though not implemented for VSI at the moment).

@ebremer
Copy link
Author

ebremer commented Mar 11, 2024

Which readers does -precompressed work with?

@melissalinkert
Copy link
Member

Which readers does -precompressed work with?

Only SVS at the moment. The API is in place for other readers to extend, but we have not yet expanded this feature to additional readers.

@ebremer
Copy link
Author

ebremer commented May 9, 2024

Any timeline for when other formats will be supported for precompressed to work with?

melissalinkert added a commit to melissalinkert/bioformats that referenced this issue Jun 19, 2024
@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/vsi-to-dcm-file-conversion/98249/7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants