Skip to content

How to save the image correctly? #21

Answered by KelSolaar
yyuuliang asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yyuuliang,

So assuming you have an image:

image = demosaicing_CFA_Bayer_Malvar2004(CFA)

It is float64 linear at this stage, so you could either save it as an EXR linear file:

colour.write_image(image, 'my_image.exr')

or as a PNG file, but this would require non-linear encoding, e.g. sRGB:

colour.write_image(colour.cctf_encoding(image), 'my_image.png')

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@KelSolaar
Comment options

@vigneshgarrapally
Comment options

@KelSolaar
Comment options

@vigneshgarrapally
Comment options

@KelSolaar
Comment options

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

This discussion was converted from issue #18 on January 22, 2021 21:44.