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
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
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
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
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
Christmas tree animation by Chanut is industries under Creative Commons 4.0 license.