Increase Bits Per Channel
Posted: 2016-04-10T16:33:25-07:00
So I'm trying to convert a PNG image that has varying bits per channel to have all 8-bits per channel. Using -verbose on the image, this is what it tells me.
Channel depth:
red: 8-bit
green: 8-bit
blue: 1-bit
alpha: 1-bit
For my application, all channels must be encoded with 8-bits. I've tried a ton of the commands to force the output but nothing seems to be working. When I use -verbose on the resulting image this is what I need to see.
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 8-bit
Can anyone offer me some insight into how to accomplish this? I've tried using everything I could think of including:
convert input.png -depth 16 -define png:color-type=6 PNG32:output.png
But the output Image is exactly the same as the input image.
Channel depth:
red: 8-bit
green: 8-bit
blue: 1-bit
alpha: 1-bit
For my application, all channels must be encoded with 8-bits. I've tried a ton of the commands to force the output but nothing seems to be working. When I use -verbose on the resulting image this is what I need to see.
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 8-bit
Can anyone offer me some insight into how to accomplish this? I've tried using everything I could think of including:
convert input.png -depth 16 -define png:color-type=6 PNG32:output.png
But the output Image is exactly the same as the input image.