mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Ensure png output
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
c557c0e24c
commit
b8eefc87e4
@ -44,6 +44,7 @@ async function getBaseIconImage() {
|
||||
async function generateImage(image: Buffer, size: number, namePrefix: string) {
|
||||
sharp(image)
|
||||
.resize({ width: size, height: size })
|
||||
.png()
|
||||
.toFile(path.join(outputFolder, `${namePrefix}.png`));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user