diff --git a/packages/core/src/lib/TwaGenerator.ts b/packages/core/src/lib/TwaGenerator.ts index 4e7c4d5c..bd86a229 100644 --- a/packages/core/src/lib/TwaGenerator.ts +++ b/packages/core/src/lib/TwaGenerator.ts @@ -142,7 +142,8 @@ export class TwaGenerator { } private async saveIcon(data: Buffer, size: number, fileName: string): Promise { - await sharp(data) + // 2400 is the maximal density which gets the best quality. + await sharp(data, {density: 2400}) .resize(size) .png() .toFile(fileName);