Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit492fd65

Browse files
authored
Create requests.js
1 parentbeff298 commit492fd65

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

‎example requests/requests.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
varsettings={
4+
"url":"https://munch.emuseum.com/apis/iiif/image/v2/17261/full/max/0/default.jpg",
5+
"method":"GET",
6+
"timeout":0,
7+
};
8+
9+
$.ajax(settings).done(function(response){
10+
console.log(response);
11+
});
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+
varsettings={
17+
"url":"https://munch.emuseum.com/apis/iiif/image/v2/17261/90,0,350,220/max/0/default.jpg",
18+
"method":"GET",
19+
"timeout":0,
20+
};
21+
22+
$.ajax(settings).done(function(response){
23+
console.log(response);
24+
});
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+
varsettings={
30+
"url":"https://munch.emuseum.com/apis/iiif/image/v2/17261/90,0,350,220/max/90/default.jpg",
31+
"method":"GET",
32+
"timeout":0,
33+
};
34+
35+
$.ajax(settings).done(function(response){
36+
console.log(response);
37+
});
38+
39+
40+
// GET /17261/info.json. Requests image information.
41+
42+
varsettings={
43+
"url":"https://munch.emuseum.com/apis/iiif/image/v2/17261/info.json",
44+
"method":"GET",
45+
"timeout":0,
46+
};
47+
48+
$.ajax(settings).done(function(response){
49+
console.log(response);
50+
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp