forked from adieuadieu/retinal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.json
More file actions
44 lines (44 loc) · 952 Bytes
/
config.sample.json
File metadata and controls
44 lines (44 loc) · 952 Bytes
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
{
"name": "serverless-sharp-image",
"provider": {
"profile": "serverless-admin",
"stage": "dev",
"region": "us-west-2"
},
"sourceBucket": "marco-test-bucket",
"sourcePrefix": "serverless-sharp-image/incoming",
"destinationBucket": "marco-test-bucket",
"destinationPrefix": "serverless-sharp-image/processed/",
"s3": {
"params": {
"Metadata": {
"generator": "created by a serverless-sharp-image lambda function"
}
}
},
"all": [
["rotate"],
["toFormat", "jpeg", { "quality": 80 }]
],
"outputs": [
{
"key": "%(filename)s-200x200.jpg",
"params": {
"ACL": "public-read"
},
"operations": [
["resize", 200, 200],
["max"],
["withoutEnlargement"]
]
},
{
"key": "%(filename)s-100x100.jpg",
"operations": [
["resize", 100, 100],
["max"],
["withoutEnlargement"]
]
}
]
}