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

Function processPng

optimize.js:193–197  ·  view source on GitHub ↗
({ fileBuffer, config, isLossless })

Source from the content-addressed store, hash-verified

191}
192
193function processPng({ fileBuffer, config, isLossless }) {
194 return sharp(fileBuffer)
195 .png(isLossless ? config?.png?.lossless : config?.png?.lossy || {})
196 .toBuffer();
197}
198
199function processGif({ fileBuffer, config, isLossless }) {
200 const commandOptions = [

Callers 1

processFileByFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected