I have some pictures witch are RGB. If I am using a command for example
input.jpg -resample 300 output.jpg
the rgb pictures comes out in grey. This is happening only by pictures witch have all 3 channels the same values. If there is 1% one color different, than is stay rgb. That is a problem. I have some pictures with one small red logo on it, but if i can not see the logo in one of them, than it will be convert in grey. I am using that for a lot of pictures witch will be showed in one screen at the same time. There the pictures looks different.
I also tried
input.jpg -colorspace rgb -resample 300 output.jpg
But I had the same Issue.
What can I do?
-resample convert from RGB to gray automatical
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: -resample convert from RGB to gray automatical
If the RGB channels have the same values, the image is gray. There is no colour.Norbert wrote:the rgb pictures comes out in grey. This is happening only by pictures witch have all 3 channels the same values.
snibgo's IM pages: im.snibgo.com
Re: -resample convert from RGB to gray automatical
that is true, but i need the picture in rgb. and it is rgb in so it should rgb out.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: -resample convert from RGB to gray automatical
If you want to force the output file to be a particular type, use "-type", eg:
Code: Select all
input.jpg -resample 300 -type TrueColor output.jpg
snibgo's IM pages: im.snibgo.com
Re: -resample convert from RGB to gray automatical
that is working. Thank you very much.