|
| 1 | +# GET /17261/full/max/0/default.jpg. Requests an image with id 17261 with full region, max size, no rotation and default quality in jpg format. |
| 2 | + |
| 3 | +importhttp.client |
| 4 | +importmimetypes |
| 5 | +conn=http.client.HTTPSConnection("munch.emuseum.com") |
| 6 | +payload='' |
| 7 | +headers= {} |
| 8 | +conn.request("GET","/apis/iiif/image/v2/17261/full/max/0/default.jpg",payload,headers) |
| 9 | +res=conn.getresponse() |
| 10 | +data=res.read() |
| 11 | +print(data.decode("utf-8")) |
| 12 | + |
| 13 | + |
| 14 | +# GET /17261/90,0,350,220/max/0/default.jpg. Requests a reqion of an image with ID 17261 with max size, no rotation, default quality and jpg format. |
| 15 | + |
| 16 | +importhttp.client |
| 17 | +importmimetypes |
| 18 | +conn=http.client.HTTPSConnection("munch.emuseum.com") |
| 19 | +payload='' |
| 20 | +headers= {} |
| 21 | +conn.request("GET","/apis/iiif/image/v2/17261/90,0,350,220/max/0/default.jpg",payload,headers) |
| 22 | +res=conn.getresponse() |
| 23 | +data=res.read() |
| 24 | +print(data.decode("utf-8")) |
| 25 | + |
| 26 | + |
| 27 | +# GET /17261/90,0,350,220/max/90/default.jpg. Requests a region of an image with ID 17261 with max size, 90° rotation, default quality and jpg format. |
| 28 | + |
| 29 | +importhttp.client |
| 30 | +importmimetypes |
| 31 | +conn=http.client.HTTPSConnection("munch.emuseum.com") |
| 32 | +payload='' |
| 33 | +headers= {} |
| 34 | +conn.request("GET","/apis/iiif/image/v2/17261/90,0,350,220/max/90/default.jpg",payload,headers) |
| 35 | +res=conn.getresponse() |
| 36 | +data=res.read() |
| 37 | +print(data.decode("utf-8")) |
| 38 | + |
| 39 | + |
| 40 | +# GET /17261/info.json. Requests image information. |
| 41 | + |
| 42 | +importhttp.client |
| 43 | +importmimetypes |
| 44 | +conn=http.client.HTTPSConnection("munch.emuseum.com") |
| 45 | +payload='' |
| 46 | +headers= {} |
| 47 | +conn.request("GET","/apis/iiif/image/v2/17261/info.json",payload,headers) |
| 48 | +res=conn.getresponse() |
| 49 | +data=res.read() |
| 50 | +print(data.decode("utf-8")) |