MCPcopy Create free account
hub / github.com/343dev/optimizt / getConfig

Function getConfig

convert.js:49–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 const totalSize = { before: 0, after: 0 };
48
49 const getConfig = format => config?.[format]?.[isLossless ? 'lossless' : 'lossy'];
50
51 const avifConfig = getConfig('avif');
52 const webpConfig = getConfig('webp');

Callers 1

convertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected