Hello, I am new to MagickCore. I am just trying to read an image in. I
wrote simple a program to demonstrate a problem that I am having in a
more complex program. It is very simple, I am not sure what I am doing
wrong. I am attempting to read temp.jpg from the current working
directory. However, when I do I get the following output:

a.out: magick/string.c:261: CloneStringInfo: Assertion
`string_info->signature == 0xabacadabUL' failed.

This is on Ubuntu 10.04 with (I believe) ImageMagick 6.5.7-8 if that
makes a difference. Here is the source to my demo program in its
entirety:

// C/C++ includes
#include <cstring>

// ImageMagick include
#include "magick/MagickCore.h"

int main (int argc, char **argv)
{
    Image * pImage;
    ImageInfo imageInfo;
    ExceptionInfo exceptionInfo;

    imageInfo.signature = MagickSignature;
    strncpy(imageInfo.filename, "temp.jpg", MaxTextExtent);
    pImage = ReadImage(&imageInfo, &exceptionInfo);

    return EXIT_SUCCESS;
}

Any help would be greatly appreciated.

Thanks,

Tabor
_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users
  • ... Tabor Kelly
    • ... Tabor Kelly
    • ... da . mihi . sis . bubulae . frustrum . assae . solana . tuberosa . in . modo . gallico . fricta . ac . quassum . lactatum . coagulatum . crassum
      • ... Tabor Kelly

Reply via email to