[magick-users] Problem with MagickGetImageResolution

Bruno Auger bruno at norp.ca
Tue Oct 16 07:17:00 PDT 2007


Sorry...stupid newbie error...solved the problem

Thanks
> Hi everyone,
>
>    I'm using MagickWand C API on Gentoo Linux PPC.
>
>    I'm developping a simple interface to get description on image 
> file. I already use a lot of functions without problem. When it comes 
> to MagickGetImageResolution, I always get a segment fault. I just need 
> to comment the line with the function MagickGetImageResolution to get 
> back the all the rest OK.
>
>
> Here's the simple function :
>
> //resolution xy
> int image_attr_resol_xy(image_attr *image, MagickWand *wand_image_attr)
> {
> double* x_buffer;
> double* y_buffer;
>        MagickGetImageResolution(wand_image_attr, x_buffer, y_buffer);
>   return     0;
> }
>
> I principally uses it on PPC, but I got the same results on a x86 
> machine.
>
> Any ideas ?
>
>
> Thanks
> Bruno Auger
>
> _______________________________________________
> Magick-users mailing list
> Magick-users at imagemagick.org
> http://studio.imagemagick.org/mailman/listinfo/magick-users



More information about the Magick-users mailing list