Files
OpenScript/scripts/generate-icons.js
T
multipleof4andClaude Opus 5.5 1883a63ccd Use transparent v3 logo for extension and popup icons
Regenerate icon-{16,32,48,128}.png from the new transparent
OpenScript_v3.png master so the toolbar button and popup header
no longer show a white square on dark backgrounds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 06:40:07 -07:00

14 lines
357 B
JavaScript

import sharp from 'sharp';
import fs from 'fs';
const src = 'public/icons/OpenScript_v3.png';
const sizes = [16, 32, 48, 128];
for (const s of sizes) {
await sharp(src)
.resize(s, s, { fit: 'contain', background: { r: 0, g: 0, b: 0, alpha: 0 } })
.png()
.toFile(`public/icons/icon-${s}.png`);
console.log(`✓ Generated icon-${s}.png`);
}