Any API to return the number of frames in an image?

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
User avatar
magick
Site Admin
Posts: 11162
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

The number of images in the GIF is returned by Ping(). Ping() returns width, height, size, and format of each image in the sequence so to get the number of image in the sequence simply divide the list length by 4.

Post Reply