PNG to Jpeg Colorspace Issue

Hi friends!

Quick question. After converting a few png’s to jpg I only now realized that it would output the image in a CMYK format. I think it’s seeing 4 channels in the png and giving the jpg 4 channels as well? Anyways, how could I tell gmic to output the jpg in RGB colorspace?

Thanks for the help!
BPVW

Indeed, saving a 4-channel image to a .jpeg file assumes the data are in CMYK.
To discard the alpha-channel from your .png data, you can use to_rgb :

$ gmic filein1.png to_rgb -o fileout1.jpg,75

THANK YOU! I knew it had to be a simple instruction to adjust that output. And I’m getting the hang of the input output processes (I think)

Have a great day!

1 Like