Page 1 of 1

After copying image in Magick++ saving to RGBA doesn't work

Posted: 2009-02-17T08:33:15-07:00
by ivan.savu
Here's a code that illustrates my problem

Code: Select all

	Image image (Magick::Geometry(1024,1024), Magick::Color(255,255, 0));
	
	image.fillColor(Magick::Color(0,0,255));
	image.draw(DrawableRectangle(100,100,200,200));

	Magick::Image test = image;

	test.magick("RGBA");
	test.write("C:/test1");
After execution, C:/test1 is filled with incorrect data.. If I save test object to any other, non raw format (png, jpg.. ), everything works fine..
Also if I perform save with image object, directly, without copying, everything also works fine.. This is a recent bug I can verify that it didn't exist in 6.4.6-0 and that it exists in 6.4.9-4. If there's any way I can help with this bug(i.e. determine exact version of IM in which this bug started occurring).. drop me a message here, since this one is really a high priority bug for me .. Thanks.

Re: After copying image in Magick++ saving to RGBA doesn't work

Posted: 2009-02-18T08:48:08-07:00
by magick
There is a bug in raw RGBA due to a user contributed patch. We will revert the patch in the ImageMagick 6.4.9-5 release available within a few days. Thanks.

Re: After copying image in Magick++ saving to RGBA doesn't work

Posted: 2009-02-19T02:24:10-07:00
by ivan.savu
Ok I'v tested the new 6.4.9-5 version, works nicely. Thanks.