33 lines
751 B
JavaScript
33 lines
751 B
JavaScript
import { defineConfig } from 'astro-imagetools/config'
|
|
|
|
export default defineConfig({
|
|
placeholder: 'blurred',
|
|
format: ['webp', 'jpg'],
|
|
fallbackFormat: 'png',
|
|
includeSourceFormat: false,
|
|
formatOptions: {
|
|
jpg: {
|
|
quality: 80,
|
|
},
|
|
png: {
|
|
quality: 80,
|
|
},
|
|
webp: {
|
|
quality: 50,
|
|
},
|
|
tracedSVG: {
|
|
function: 'trace',
|
|
options: {
|
|
background: '#fff',
|
|
color: '#000',
|
|
turnPolicy: 'black',
|
|
turdSize: 1,
|
|
alphaMax: 1,
|
|
optCurve: true,
|
|
threshold: 100,
|
|
blackOnWhite: false,
|
|
},
|
|
},
|
|
},
|
|
})
|