Discussion:
problem in converting gif to rgb
t***@gmail.com
2010-09-30 09:53:59 UTC
Permalink
Hello all,

I've tried to convert "gif (or postscript)" format to "rgb" format,
simply by "convert sample.gif sample.rgb".

BUT, converted rgb file is broken. It generates black and white lines only.

Do I have to use some options?

Thanks in advance.
Wolfgang Hugemann
2010-10-01 07:11:42 UTC
Permalink
RGB is a raw RGB file, i.e. the RGB values being stored for each pixel.
If you type

convert -size 2x2 -xc:seagreen1 test.rgb

the file should be 24 byte (with IM Q16) and consist of four times the
hexvalues

54 (54) FF (FF) 9F (9F)

These are the RGB values of seagreen1, see
http://www.imagemagick.org/script/color.php.

If this is what happens on your computer, too, then the problem is
probably on the side of the image viewer that you use. (Which is?)

Wolfgang Hugemann

Loading...