Name

Ping( ) — obtain information about an image without reading it

Synopsis

Image::Magick->Ping(filename=>string)

Ping( ) is a convenience function that returns information about a file without having to read the image into memory. It returns the width, height, file size in bytes, and the file format of the image. For multi-image files, only the information for the first image in the sequence is returned.

Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.