Document kit

SVG Icon Grid Generator

It arranges uploaded SVG files into a defined grid layout.

It exports the result as a single SVG file. The files open in your own spreadsheet, calendar and text programs.

Version 1.0.0 · Teranite Systems

$10.00 USD, one-time

Buying this pack gets you a licence to use it, not ownership of the files.

Read the full licence

Buy for $10.00

  • Download right after payment, and by email.
  • Opens in your own spreadsheet, calendar and text programs.
  • Refund within 14 days, for any reason.
  • Payment is handled by Stripe.

What it does

It arranges uploaded SVG files into a defined grid layout. It exports the result as a single SVG file. The files open in your own spreadsheet, calendar and text programs.

What's inside

  • SVG Icon Grid Generator: generator.html, grid-engine.js, output-template.js.

With a README and the Teranite Facet Buyer Licence.

Sample

SVG Icon Grid Generator

It arranges uploaded SVG files into a defined grid layout. It exports the result as a single SVG file.

Files: generator.html, grid-engine.js, output-template.js. grid-engine.js, start of the file:

document.getElementById('generateBtn').addEventListener('click', async () => {
    const fileInput = document.getElementById('fileInput');
    const colsInput = document.getElementById('cols');
    const spacingInput = document.getElementById('spacing');
    const preview = document.getElementById('preview');

    const files = Array.from(fileInput.files);
    if (files.length === 0) {
        alert('Please upload some SVG files first.');
        return;
    }

    const cols = parseInt(colsInput.value) || 1;
    const spacing = parseInt(spacingInput.value) || 0;
    const rows = Math.ceil(files.length / cols);

    try {
        const svgContents = await Promise.all(files.map(file => readFileAsText(file)));
        const parsedSvgs = svgContents.map(content => parseSvgContent(content));

        // Assume uniform size based on first icon or default to 32
        const iconWidth = parsedSvgs[0].width || 32;
        const iconHeight = parsedSvgs[0].height || 32;

        const totalWidth = (cols * iconWidth) + ((cols - 1) * spacing);
        const totalHeight = (rows * iconHeight) + ((rows - 1) * spacing);

        let gridElements = '';
        parsedSvgs.forEach((svg, index) => {

Requirements

  • A program that opens the file types listed.
  • Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
  • Not opened in other programs.

Install

Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.

Licence

One licence covers one person. Your finished work is yours. Do not share or resell the files.

How it is made

Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.

Support

Questions, or a fault: support@teranitesystems.com. We reply within 2 business days.

More from Spreadsheet templates

See all