Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Is it possible to save grayscale images of type float32? #176

Closed
RpfR2000 opened this issue Dec 4, 2024 · 2 comments
Closed

Is it possible to save grayscale images of type float32? #176

RpfR2000 opened this issue Dec 4, 2024 · 2 comments

Comments

@RpfR2000
Copy link

RpfR2000 commented Dec 4, 2024

In the documentation, I only see how to save float images as color images, not grayscale.

Thanks!

@tlnagy
Copy link
Owner

tlnagy commented Dec 5, 2024

Yes you can, for example:

julia> using Colors, TiffImages

julia> TiffImages.save("test.tif", rand(Gray{Float32}, 100, 100))

@tlnagy tlnagy closed this as completed Dec 5, 2024
@tlnagy
Copy link
Owner

tlnagy commented Dec 5, 2024

Also, happy to accept PRs to improve the docs if you thought they were unclear.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants