GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Fixes api calls to sharp and imagemin

parent 5835e9e7
......@@ -109,14 +109,17 @@ class GenerateImages {
const buffer = await sharp(source)
.resize(size.width, size.height)
.overlayWith(roundedCorners, {cutout: true})
input: roundedCorners,
blend: 'dest-in'
.flatten({background: theme})
const minifiedBuffer = await imagemin.buffer(buffer, {
plugins: [imageminPngquant({quality: '65-80'})]
plugins: [imageminPngquant({quality: [0.65, 0.8]})]
fs.writeFileSync(targetLogo, minifiedBuffer, 'binary');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment