Skip to content

Conversation

@evamaxfield
Copy link
Contributor

…ME TIFF Writer

Link to Relevant Issue

This pull request:

Description of Changes

This moves the hard coded compression setting in OmeTiffWriter to a parameter.

My only general discussion point before this gets merged is perhaps maybe we should just open up all tifffile kwargs like how we do with fs_kwargs?

@toloudis
Copy link
Contributor

It says it resolves #36 but I think that one mentions both tiff and zarr. We need to at least have another open issue for zarr.

Copy link
Contributor Author

@evamaxfield evamaxfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@toloudis this PR has been updated to allow for all tifffile write kwargs to be passed. This should resolve the lack of compression args and generally just future proofing us a bit in the case people want to use other parameters.

Docstring includes custom compression example

@evamaxfield
Copy link
Contributor Author

Quick note: seems like TIFF.COMPRESSION and the like have been deprecated since 2022 with preference for using tifffile.COMPRESSION etc. Do we want to make that change? I guess people could theoretically still be using tifffile 2021 versions but 🤷‍♀️

@toloudis
Copy link
Contributor

I'm generally in favor of using current things but we might have to put a min value on our tifffile version?

@evamaxfield
Copy link
Contributor Author

Ping on this. I don't think we need to change our minimum tifffile version for a bit.

Good to merge though? @toloudis @SeanLeRoy @BrianWhitneyAI

@toloudis
Copy link
Contributor

toloudis commented Feb 6, 2025

Ping on this. I don't think we need to change our minimum tifffile version for a bit.

I thought you were going to do something to use the more current (post-2022) enum

Copy link
Contributor

@toloudis toloudis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@evamaxfield evamaxfield merged commit e7bd2af into main Feb 7, 2025
20 checks passed
@evamaxfield evamaxfield deleted the feature/parameterize-compression branch February 7, 2025 20:15
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

Successfully merging this pull request may close these issues.

[Feature Request] Image compression for ome.tiff files writer compression parameter

3 participants