-
Notifications
You must be signed in to change notification settings - Fork 2
/
astroCompress.config.mjs
48 lines (42 loc) · 991 Bytes
/
astroCompress.config.mjs
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
export const astroCompressConfig = {
avif: false,
png: false,
webp: false,
jpeg: {
/**
* Quality, integer 1-100
* @default 80
*/
quality: 70,
/**
* Use progressive (interlace) scan
* @default false
*/
progressive: true,
/**
* Set to '4:4:4' to prevent chroma subsampling otherwise defaults to '4:2:0' chroma subsampling/**
* @default '4:2:0'
*/
chromaSubsampling: "4:2:0",
/**
* Optimise Huffman coding tables
* @default true
*/
optimiseCoding: true,
/**
* Alternative spelling of optimiseCoding
* @default true
*/
optimizeCoding: true,
/**
* Use mozjpeg defaults, equivalent to { trellisQuantisation: true, overshootDeringing: true, optimiseScans: true, quantisationTable: 3 }
* @default false
*/
mozjpeg: true,
/**
* Force JPEG output, otherwise attempt to use input format
* @default true
*/
force: true,
},
};