Dear master,
I refer to http://www.imagemagick.org/script/magick-core.php's core.c and compile and run it , It working very well in my computer.
But When I change ReadImage() to PingImage() function and recompile and then run it, It's always appear "Segmentation fault".
I think the PingImage() load source image is faster then ReadImage(), But I get Image always 0x00, Why?
Image * image = PingImage(...,....);
^------- 0x00 (NULL)
Could somebody point out my mistake.
thanks
Change ReadImage() to PingImage()
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: Change ReadImage() to PingImage()
PingImage does not load the image. It is used as a fast way to obtain information about the image, such as its width and height, without having to also load the image.
Pete
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
See my message in this topic for a link to a zip of all the files.
Re: Change ReadImage() to PingImage()
Does MagickCore has any function to load image faster than ReadImage()? (Maybe block by block, not scanline)
Thanks
Thanks
Re: Change ReadImage() to PingImage()
If you know the format of the image, you can call the decoder directly rather than ReadImage(). Use GetImageDecoder() with the handle from GetMagickInfo(). However, we suspect the speed-up would not be significant.Does MagickCore has any function to load image faster than ReadImage()? (Maybe block by block, not scanline)
Re: Change ReadImage() to PingImage()
Thanks!
If I focus on hardware, Which one to replace can be speedup!!
If I focus on hardware, Which one to replace can be speedup!!