This project has moved and is read-only. For the latest updates, please go here.

Ping or MagickImageInfo?

Sep 14, 2015 at 3:34 PM
We currently use MagickImageInfo to read data about an image, presumably without reading the entire bitmap. I came across another post that uses the Ping function. What are the differences? Are there pros and cons to each? Thanks
Sep 14, 2015 at 4:23 PM
MagickImageInfo uses the Ping method to get the image information and puts them in an object. The Ping method does not read the pixel data, it stops reading right before the pixel data is read. You only need to use Ping if you need to acquire more metadata then MagickImageInfo provides you.
Sep 14, 2015 at 7:17 PM
Cool, thanks.