Enables selection of a single frame or a range, to enable preview of the GIF file. Ranges can take three forms:
- M-N: Selects frames
Nand all frames in between
- M-: Selects frames from
Mthrough the end of the file
- -N: Selects frames from
In addition to extracting a portion of the animation, you can extract metadata from the image with the
fm=json parameter and use it for further operations. For example, this is the metadata from the above cartoon:
The most meaningful fields for animated GIFs are
Frames. They can be used as inputs for further calculations and operations, such as maintaining or changing the aspect ratio across a catalog of images or extracting a thumbnail preview of part of the animation. See our JSON tutorial for more information about using metadata this way.
See the API specification for more information about this parameter's value ranges and format.