style: change to set of new backgrounds

This commit is contained in:
2026-07-02 09:45:08 +07:00 Unverified
parent 289c422ab2
commit 113626cf45
29 changed files with 91 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
import { Glob } from "bun";
const g = new Glob("public/bgassets/*.png");
for await (const img of g.scan()) {
Bun.file(img)
.image()
.webp()
.buffer()
.then((b) => Bun.write(img.replace(".png", ".webp"), b))
.finally(() => console.log(img, "processed."));
}