Overview
Sources
Libraries
Images API

Page page

Specify the page or frame to be used for a source multipage document (PDF file) or animated file (GIF or WebP file).

Values

This parameter accepts integer values in the range 1 (first page or frame) to the maximum number of pages/frames of the source file.

You can obtain the number of pages or frames for a source file using format=json param.

Examples

By default page=1 will be used if the output format doesn't supports animations and the source image is a multipage document or animation:

GET
https://assets.imglab-cdn.net/logo.pdf?format=png
imglab logo encoded as png using a PDF file as input.
x px

Get page number 2 for a PDF source file with param page=2:

GET
https://assets.imglab-cdn.net/logo.pdf?page=2&format=png
imglab logo with different color encoded as png from a PDF file specific page using page parameter.
x px

Using GIF source file without specifying page and using format=gif generating an animated GIF file:

GET
https://assets.imglab-cdn.net/tree.gif?format=gif
An animated Christmas tree encoded as GIF.
x px

Get frame number 1 for a GIF source file with param page=1 and format=gif generating a non animated GIF file:

GET
https://assets.imglab-cdn.net/tree.gif?page=1&format=gif
First frame from an animated Christmas tree GIF using page parameter with value 1.
x px

Get frame number 12 for a GIF source file with param page=12 and format=gif generating a non animated GIF file:

GET
https://assets.imglab-cdn.net/tree.gif?page=12&format=gif
Frame number 12 from an animated Christmas tree GIF using page parameter with value 12.
x px

Christmas tree animation by Chanut is industries under Creative Commons 4.0 license.