3

So I am trying to convert my grayscale image (8 bit) to 24 bit with python. And I tried to do it with numpy.

But how do i save it as a .png image?

import numpy as np img = np.array(NewGrayScaleImage, dtype=np.uint16) img *= 384 #256 for 16 bit 
2
  • 1
    stackoverflow.com/a/902774/8881141 Commented Dec 9, 2017 at 17:40
  • Many thanks. I have been looking for it for so long Commented Dec 9, 2017 at 17:47

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.