No images are read or written
Posted: 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
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