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

Support RGB images by using only first two elems of image shape #51

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

Micro-Sandworms
Copy link
Contributor

Takes now only the width and height of the image to calculate the extrema. This avoids an error when using color images

Takes now only the width and height of the image to calculate the extrema. This avoids an error when using color images
@jni
Copy link
Member

jni commented Jan 10, 2025

@Micro-Sandworms nice, thanks! Have you verified that this correctly saves RGB images? (I haven't checked whether the rest of the code supports writing RGB images correctly.)

@jni jni changed the title Update layer_to_xml.py Support RGB images by using only first two elems of image shape Jan 10, 2025
@jni jni mentioned this pull request Jan 14, 2025
@jni jni merged commit 7b25b53 into napari:main Jan 14, 2025
7 checks passed
@jni
Copy link
Member

jni commented Jan 14, 2025

@Micro-Sandworms thanks for your contribution, which actually helped me fix a pretty major bug in image writing since 0.2.0! This fix and #52 are now released as 0.2.1! 🥳

@Micro-Sandworms
Copy link
Contributor Author

Thank you, Juan. I am happy to contribute!

@Micro-Sandworms Micro-Sandworms deleted the patch-1 branch January 14, 2025 14:09
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.

2 participants