Skip to content

How to properly save out color corrected .png files? #70

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

You must be logged in to vote

Hi Corbain,

You would need to do something along those lines:

colour.io.write_image((colour.cctf_encoding(corrected_image) * 255).astype(np.uint8), path=new_path)

Note though that you might clip some values doing so and it might be preferred, depending on your application to save as an linear EXR instead of PNG file.

Cheers,

Thomas

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by CorbanSwain
Comment options

You must be logged in to vote
0 replies
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