Skip to content

Error saving a demosaiced image: "Cannot handle this data type: (1, 1, 3), <f4" #58

Discussion options

You must be logged in to vote

Hi @alessandrofrancesconi,

We always convert the image type to float32 and normalise it between [0, 1] if it is of an integer type:

>>> colour.io.read_image_Imageio("/Users/kelsolaar/Downloads/input.bmp").dtype
dtype('float32')

When it come to writing, Imageio is not as smart as OpenImageIO and tries to write that float32 data into a 8-bit Bitmap container, so it fails.

Hope that makes sense!

Cheers,

Thomas

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KelSolaar
Comment options

Answer selected by alessandrofrancesconi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants