-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsample.eskip
128 lines (108 loc) · 3.75 KB
/
sample.eskip
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// http://localhost:9090/images/S/image-2k.jpg
small: Path("/images/S/:image")
-> modPath("^/images/S", "/images")
-> finalizeResponse()
-> quality(67)
-> longerEdgeResize(800)
-> "http://localhost:9090";
small90: Path("/images/S90/:image")
-> modPath("^/images/S90", "/images")
-> finalizeResponse()
-> quality(90)
-> longerEdgeResize(800)
-> "http://localhost:9090";
smallCached: Path("/cached/images/S/:image")
-> localFileCache("./mylocalfilecache")
-> modPath("^/cached/images/S", "/images")
-> finalizeResponse()
-> longerEdgeResize(800)
-> "http://localhost:9090";
dynamic: Path("/images/dynamic/:image")
-> modPath("^/images/dynamic", "/images")
-> transformByQueryParams()
-> "http://localhost:9090";
smallAndSharp: Path("/images/Ss/:image")
-> modPath("^/images/Ss", "/images")
-> finalizeResponse()
-> longerEdgeResize(800)
-> sharpen(1, 2, 10, 20, 0, 3)
-> "http://localhost:9090";
smallAndBlurred: Path("/images/Sb/:image")
-> modPath("^/images/Sb", "/images")
-> finalizeResponse()
-> longerEdgeResize(800)
-> blur(20, 20)
-> "http://localhost:9090";
medium: Path("/images/M/:image")
-> modPath("^/images/M", "/images")
-> finalizeResponse()
-> longerEdgeResize(1200)
-> "http://localhost:9090";
large: Path("/images/L/:image")
-> modPath("^/images/L", "/images")
-> finalizeResponse()
-> quality(67)
-> longerEdgeResize(1920)
-> "http://localhost:9090";
// http://localhost:9090/images/teaser/image-2k.jpg
teaser: Path("/images/teaser/:image")
-> modPath("^/images/teaser", "/images")
-> finalizeResponse()
-> longerEdgeResize(1920)
-> crop(1920, 1016)
-> "http://localhost:9090";
cropByWidth: Path("/images/cropbywidth/:image")
-> modPath("^/images/cropbywidth", "/images")
-> finalizeResponse()
-> cropByWidth(1200, "east")
-> "http://localhost:9090";
cropByHeight: Path("/images/cropbyheight/:image")
-> modPath("^/images/cropbyheight", "/images")
-> finalizeResponse()
-> cropByHeight(1000, "south")
-> "http://localhost:9090";
cropByFocalPoint: Path("/images/cropbyfocalpoint/:focalPointX/:focalPointY/:image")
-> modPath("^/images/cropbyfocalpoint/\\d+/\\d+", "/images")
-> finalizeResponse()
-> cropByFocalPoint(0.5,0.5,0.5)
-> "http://localhost:9090";
cropByFocalPointBestEffort: Path("/images/cropbyfocalpointminwidth/:focalPointX/:focalPointY/:image")
-> modPath("^/images/cropbyfocalpointminwidth/\\d+/\\d+", "/images")
-> finalizeResponse()
-> cropByFocalPoint(0.5,0.5,0.5,400)
-> "http://localhost:9090";
widthAndQuality: Path("/images/waq/:image")
-> modPath("^/images/waq", "/images")
-> finalizeResponse()
-> width(1000)
-> quality(5)
-> "http://localhost:9090";
withVioletBackground: Path("/images/vio/:image")
-> modPath("^/images/vio", "/images")
-> finalizeResponse()
-> addBackground(255, 25, 255)
-> width(1000)
-> "http://localhost:9090";
resize_no_ratio: Path("/images/dist/:image")
-> modPath("^/images/dist", "/images")
-> finalizeResponse()
-> resize(255, 25, "keepAspectRatio")
-> "http://localhost:9090";
convertImageType: Path("/images/conv/:image")
-> modPath("^/images/conv", "/images")
-> finalizeResponse()
-> resize(50, 100, "ignoreAspectRatio")
-> convertImageType("jpeg")
-> "http://localhost:9090";
video: Path("/images/vid/:image")
-> modPath("^/images/vid", "/images")
-> finalizeResponse()
-> overlayImage("images/video.png", 1.0, "CC")
-> "http://localhost:9090";
//imageOverlay(<filename>, <opacity>, <gravity>, <top_margin>, <right_margin>, <bottom_margin>, <left_margin>)
new: Path("/images/new/:image")
-> modPath("^/images/new", "/images")
-> finalizeResponse()
-> overlayImage("images/star.png", 1.0, "NE", 10, 10, 0, 0)
-> "http://localhost:9090";
static: * -> static("/", ".") -> <shunt>;