-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample-2.json
94 lines (94 loc) · 3 KB
/
example-2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"input_url": "../examples/images/image-2.jpg",
"correct_rotation":true,
"write_meta":
{
"object_name":"Sculpture of birds",
"urgency":"2",
"subject":["20001135","20001136"],
"category":"ACE",
"supplemental_category":["ACE","SCI"],
"keywords": ["sculpture","abstract","outdoors","metal","birds"],
"location_name": ["United States Oregon Corvallis"],
"instructions": "Property Released (PR)",
"date_created":"2017-01-22",
"program": "Snapwi.re site",
"program_version": "3.6.10",
"byline":["Paul Filitchkin","Snapwire team"],
"byline_title":["Paul Filitchkin","Snapwire team"],
"city": "Corvallis",
"province_state": "Oregon",
"country_code":"USA",
"country_name": "United States",
"transmission_reference":"56f54c9a07e62d05f306a3de",
"headline":"Abstract sculpture of birds",
"credit":"https://www.snapwi.re",
"source":"Paul Filitchkin",
"copyright": "Paul Filitchkin",
"contact":["hello@snapwi.re","support@snapwi.re"],
"caption": "Abstract sculpture of birds",
"writer":["Paul Filitchkin","Snapwire team"]
},
"operations": [
{
"type": "resize",
"params": {
"width": 150,
"height": 1000,
"type": "width",
"preserve_meta": false,
"sharpen_amount": 200,
"sharpen_radius": 0.5,
"quality": 80,
"output_url": "../examples/image-2-150-height.jpg"
}
},
{
"type": "resize",
"params": {
"width": 150,
"height": 150,
"type": "square",
"preserve_meta": false,
"sharpen_amount": 200,
"sharpen_radius": 0.5,
"quality": 80,
"output_url": "../examples/image-2-150-square.jpg"
}
},
{
"type": "resize",
"params": {
"width": 1000,
"height": 300,
"type": "height",
"preserve_meta": false,
"sharpen_amount": 160,
"sharpen_radius": 0.6,
"quality": 85,
"output_url": "../examples/image-2-300-height.jpg"
}
},
{
"type": "resize",
"params": {
"width": 800,
"height": 1000,
"type": "width",
"preserve_meta": true,
"sharpen_amount": 200,
"sharpen_radius": 0.6,
"quality": 80,
"watermark_url":"../examples/images/watermark.png",
"watermark_amount": 0.06,
"output_url": "../examples/image-2-800-watermark.jpg"
}
},
{
"type": "copy",
"params": {
"output_url": "../examples/image-2-copy.jpg"
}
}
]
}