mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-25 02:04:15 +02:00
Use webp for thumbnails
This commit is contained in:
parent
3b6f8d7db1
commit
e2025d3556
@ -161,7 +161,7 @@ export class ImageRendererFactory {
|
||||
fit: 'cover',
|
||||
});
|
||||
}
|
||||
await image.withMetadata().jpeg().toFile(input.outPath);
|
||||
await image.withMetadata().webp({ lossless: true, effort: 6, quality: 65 }).toFile(input.outPath);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user