MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / handle

Function handle

gulpfile.js:77–81  ·  view source on GitHub ↗
(size, type = '', image = icon)

Source from the content-addressed store, hash-verified

75 ['w', transparent],
76 ];
77 const handle = (size, type = '', image = icon) => {
78 let res = image.clone().resize({ width: size });
79 if (size < 48) res = res.sharpen(size < 32 ? 0.5 : 0.25);
80 return res.toFile(`${dist}/icon${size}${type}.png`);
81 };
82 const darkenOuterEdge = async img => img.composite([{
83 input: await img.toBuffer(),
84 blend: 'over',

Callers 1

createIconsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected