set colorspace with magick++

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
fournij

set colorspace with magick++

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: set colorspace with magick++

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply