Page 1 of 1

set colorspace with magick++

Posted: 2009-10-30T13:25:50-07:00
by fournij
Hi
I want to reproduce with magick++ the fallowing command line :

Code: Select all

C:\Program Files\ImageMagick-6.4.7-Q16>convert C:\000
00.dpx -set colorspace RGB C:\00000.tga
I tried :

Code: Select all

	
Image m_MagickImage;	
m_MagickImage.read("C:\00000.dpx");
m_MagickImage.colorSpace(RGBColorspace);
m_MagickImage.write("C:\00000.tga");
the result isn't the same

How can I set the colorspace with magick++ ?

thanks

Re: set colorspace with magick++

Posted: 2009-11-08T17:36:37-07:00
by anthony
colorspace is used to specify internal storage of colors.

type and color profiles is used for external file format storage styles.

The two are closely related when the coder for a specific file format permits but that is not always present. I have no idea of the capabilities of the TGA file format or the coder. This is just general handling.

For more specific TGA info perhaps 'using the source' for the TGA coder, especially the code comments, would prove enlightening.