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.

set colorspace with magick++

Postby fournij » 2009-10-30T13:25:50+00:00

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
fournij
 
Posts: 31
Joined: 2007-07-23T07:52:22+00:00

Re: set colorspace with magick++

Postby anthony » 2009-11-08T17:36:37+00:00

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
http://www.imagemagick.org/Usage/
User avatar
anthony
 
Posts: 4013
Joined: 2004-05-31T19:27:03+00:00
Location: Brisbane, Australia


Return to Developers

Who is online

Users browsing this forum: Google [Bot] and 2 guests