Log in

View Full Version : core.c example - ImageMagick


Wilbert
29th July 2006, 20:34
I'm trying to compile the core.c example in:

http://magick.imagemagick.org/script/magick-core.php

It's a command line exe which converts a gif to a png (and downsizes it) using the ImageMagick libs.

0) i (thought i) build VisualDynamicMT.dsw under \ImageMagick-6.2.8\VisualMagick to get the needed libs (among them are: CORE_RL_magick_.lib CORE_RL_Magick++_.lib).
1) i added CORE_RL_magick_.lib CORE_RL_Magick++_.lib library modules in MSVC under the link tab.
2) i added F:\COMPILINGPLUGINS\IMAGEMAGICK-6.2.8 to include directories (Tools -> Options).
3) i added F:\COMPILINGPLUGINS\IMAGEMAGICK-6.2.8\VISUALMAGICK\LIB to lib directories (Tools -> Options).

Compiling (VC6) goes fine, but when using the executable on a gif file, nothing happens. I suspect ReadImage(...) doesn't read the image (images=ReadImage(image_info,exception); returns NULL).

Any ideas what i'm doing wrong?