const fs = require('fs'); const path = require('path'); // Icon sizes needed const sizes = [72, 96, 128, 144, 152, 192, 384, 512]; // SVG template function function createIconSVG(size) { const cornerRadius = Math.round(size * 0.25); // 25% corner radius const strokeWidth = Math.max(2, Math.round(size * 0.06)); // Scale stroke width // MessageSquare path scaled to size const padding = Math.round(size * 0.25); const iconSize = size - (padding * 2); const startX = padding; const startY = Math.round(padding * 0.7); const endX = startX + iconSize; const endY = startY + Math.round(iconSize * 0.6); const tailX = startX; const tailY = endY + Math.round(iconSize * 0.3); return ` `; } // Generate SVG files for each size sizes.forEach(size => { const svgContent = createIconSVG(size); const filename = `icon-${size}x${size}.svg`; const filepath = path.join(__dirname, 'icons', filename); fs.writeFileSync(filepath, svgContent); console.log(`Created ${filename}`); }); console.log('\nSVG icons created! To convert to PNG, you can use:'); console.log('1. Online converter like cloudconvert.com'); console.log('2. If you have ImageMagick: convert icon.svg icon.png'); console.log('3. If you have Inkscape: inkscape --export-type=png icon.svg');