UNPKG

2.92 kBJavaScriptView Raw
1var options = {
2 store: {}, // options related to third-party stores
3 permissions: "owner", // options: "public", "owner" (custom?)
4 model: "local",
5 path: "", // save in a specific folder
6 ratio: "auto", // options: auto, 4:3, 16:9
7 video: {
8
9 formats: ["mov", "mp4"],
10
11 poster: false,
12
13 sizes: {
14
15 "auto": [
16 {
17 name: "256",
18 width: 256,
19 poster: false
20 },
21 {
22 name: "512",
23 width: 512,
24 poster: false
25 },
26 {
27 name: "1k",
28 width: 1024,
29 poster: false
30 },
31 {
32 name: "2k",
33 width: 2048,
34 poster: false
35 }
36 ],
37
38 "16:9": [
39 {
40 name: "144",
41 width: 256,
42 height: 144,
43 poster: false
44 },
45 {
46 name: "360",
47 width: 640,
48 height: 360,
49 poster: false
50 },
51 {
52 name: "576",
53 width: 1024,
54 height: 576,
55 poster: false
56 },
57 {
58 name: "720",
59 width: 1280,
60 height: 720,
61 poster: false
62 },
63 {
64 name: "1080",
65 width: 1920,
66 height: 1080,
67 poster: false
68 }
69 ],
70
71 "4:3": [
72 {
73 name: "240",
74 width: 320,
75 height: 240,
76 poster: false
77 },
78 {
79 name: "360",
80 width: 480,
81 height: 360,
82 poster: false
83 },
84 {
85 name: "480",
86 width: 640,
87 height: 480,
88 poster: false
89 },
90 {
91 name: "720",
92 width: 960,
93 height: 720,
94 poster: false
95 },
96 {
97 name: "1080",
98 width: 1440,
99 height: 1080,
100 poster: false
101 }
102 ]
103 }
104 },
105
106 image: {
107 formats: ["jpg", "png", "gif"],
108 sizes: {
109 "auto": [
110 {
111 name: "4k",
112 width: 4096,
113 },
114 {
115 name: "2k",
116 width: 2048,
117 },
118 {
119 name: "1k",
120 width: 1024,
121 },
122 {
123 name: "512",
124 width: 512,
125 },
126 {
127 name: "256",
128 width: 256,
129 },
130 {
131 name: "128",
132 width: 128,
133 },
134 {
135 name: "64",
136 width: 64,
137 },
138 {
139 name: "32",
140 width: 32,
141 }
142 ],
143
144 "16:9": [
145 {
146 name: "144",
147 width: 256,
148 height: 144
149 },
150 {
151 name: "360",
152 width: 640,
153 height: 360
154 },
155 {
156 name: "576",
157 width: 1024,
158 height: 576
159 },
160 {
161 name: "720",
162 width: 1280,
163 height: 720
164 },
165 {
166 name: "1080",
167 width: 1920,
168 height: 1080
169 }
170 ],
171
172 "4:3": [
173 {
174 name: "240",
175 width: 320,
176 height: 240
177 },
178 {
179 name: "360",
180 width: 480,
181 height: 360
182 },
183 {
184 name: "480",
185 width: 640,
186 height: 480
187 },
188 {
189 name: "720",
190 width: 960,
191 height: 720
192 },
193 {
194 name: "1080",
195 width: 1440,
196 height: 1080
197 }
198 ]
199 }
200 },
201
202 source: {
203 copy: true, // copies source file in output folder
204 remove: false // delete source file after compression
205 },
206
207 files: {
208 group: false, // if set to true, places all encoded files in a folder
209 prefix: "", // a prefix fo all files created
210 scramble: false, // scrambles filenames with random characters
211 }
212
213}
214
215module.exports = options;