Page 1 of 1

No images are read or written

Posted: 2014-06-24T02:25:20-07:00
by Kurvivor
I have been trying to use ImageMagick to make use of its implementation of color quantization algorithms, but have run into variety of problems. Please note that all of them only happen in windows, on linux everything works seamlessly.

1. 16Q binary distributions cause ErrorMemoryOption when i try to create an Image object.
as do 16 Q builds from source
in the end i had to make a 8Q build.

2. Not all of constructors work. For example, following one (from example):
Magick::Image image( "100x100", "white" );
results in:
Assertion failed: image_info->signature == MagickSignature, file ..\..\coders\xc
.c, line 124

Only constructors that seem to work are
* one without parameters
* one that initialises from memory (one that uses map, i.e. "RGB")

3. When i try to read or write jpg image, i get the following message:
Assertion failed: image_info->signature == MagickSignature, file ..\..\coders\jp
eg.c, line 1013

as for other formats, i get the same messages, differing only by name of c-file.

I have chalked it to initialisation issue. My executable isn't lying in the same directory as ImageMagick binaries.
I have tried passing the path to bin directory of my ImageMagick build to InitializeMagick, but that changed notheing. Likewise, putting entire bin folder's content next to executable and passing both argv[0] and "" changed nothing.

In the end, I cannot read or write images to/from disk. However calling `convert` in bin directory of my IM build works fine.
What could be the reason? What sould i check?

Thanks in advance

Re: No images are read or written

Posted: 2014-06-24T03:28:18-07:00
by dlemstra
It looks like your application is loading another version of the .dll file. The assertion is warning you about that. This probably also explains all the other errors.

Re: No images are read or written

Posted: 2014-06-24T04:55:49-07:00
by Kurvivor
As far as logs of the application in debug show, all DLLs i am loading are from the same build folder, and i build them all together.

Re: No images are read or written

Posted: 2014-06-24T06:28:24-07:00
by dlemstra
Can you double check with Process Monitor? You can download it here: ... 96645.aspx