Play with Parameters

Now we will play with different parameters.

You'll use this base URI and add the other parameters on:

Here's the URI template you'll use:{region}/{size}/{rotation}/{quality}.{format}

In a text editor copy the template above and begin filling in different values for the region, size, rotation, quality, and format.

All the example values below ought to work with this particular image. Links to the standard documentation are given for each of the parameters.

Tip: It may be easier to see what's happening with some of the other parameters if you use a "full" region.
Tip: When viewing an image in the Firefox and Chrome web browsers the title bar will tell you the width x height of the image in pixels.
Note not all image servers will support all variations of all parameters. Later we'll cover levels of compliance to explain why.


Here are some questions you can ask yourself as you try out the examples:

  • Which parameters might you use to create a thumbnail for a search index or browse view?
  • How would you get the full image to fit within a 500 by 500 pixel space regardless of the orientation of the image?
  • If you were creating a deep zoom viewer that used tiles, how might you go about creating the image URLs you need?
  • How would you create a square image? When might this be useful?


form examples
full full
square square
x,y,w,h 327,263,4004,4595
pct:x,y,w,h pct:5,3,66,53


Try each of the following forms for size to see how images can be scaled.

form examples
full full
max max
w, 600,
,h ,600
pct:n pct:15
w,h 610,859
!w,h !200,200


To see how rotation works it can be helpful to have a non-rotated version up as well your rotated and/or mirrored version.

form examples
n 0
!n !0


Valid values are: color, gray, bitonal, default.

Try changing the server to and using these values for quality: dither, pixelized, negative. These are non-standard, but fun!


Possible values for this image server: jpg and png.

Other Images

You can also try manipulating these other images. Given is the scheme, server, and prefix then a list of image identifiers.

Start with the base URI add the image identifier and then add on the different Image API parameters.

Challenge: Try to use the region parameter to get a particular section of the image like a face or a painting in a painting.

NCSU Libraries


Art Institute of Chicago

Frick Collection


Princeton Libraries


Parameters Playground

You may also want to try using this tool to play around with parameters.

Image API Playground

Or use this example image to play with parameters: You'll need to click "run" after you make changes to see the result.

Last modified by Jason Ronallo 2018-02-11 12:36:26
Created by Jason Ronallo 2017-08-19 19:53:08

results matching ""

    No results matching ""