No images are read or written

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Kurvivor
Posts: 2
Joined: 2014-06-24T01:35:34-07:00
Authentication code: 6789

No images are read or written

Post by Kurvivor » 2014-06-24T02:25:20-07:00

Hello.
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

User avatar
dlemstra
Posts: 1567
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: No images are read or written

Post by dlemstra » 2014-06-24T03:28:18-07:00

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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

Kurvivor
Posts: 2
Joined: 2014-06-24T01:35:34-07:00
Authentication code: 6789

Re: No images are read or written

Post by Kurvivor » 2014-06-24T04:55:49-07:00

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.

User avatar
dlemstra
Posts: 1567
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: No images are read or written

Post by dlemstra » 2014-06-24T06:28:24-07:00

Can you double check with Process Monitor? You can download it here: http://technet.microsoft.com/en-us/sysi ... 96645.aspx
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

Post Reply