chore: add jimp dependency, icon padding script, and update configuration

This commit is contained in:
2026-05-31 14:04:37 +02:00
parent 30f81045ac
commit 7cd17307ba
1126 changed files with 166400 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
/* eslint-env worker */
/* global Jimp */
importScripts("../lib/jimp.js");
self.addEventListener("message", (e) => {
Jimp.read(e.data).then((lenna) => {
lenna
.resize(256, Jimp.AUTO) // resize
.quality(60) // set JPEG quality
.greyscale() // set greyscale
.getBase64(Jimp.AUTO, (err, src) => {
if (err) throw err;
self.postMessage(src);
self.close();
});
});
});