Open Assets

Logo Exports from SVG

Export an app logo from one SVG source to 1024 and 512 pixel PNGs plus a copy of the SVG itself with the Open Assets copy-source output, as in Cat IQ Test.

Open Assets turns one SVG logo into PNGs at any size plus a copy of the original SVG, using the copy-source output type. The Cat IQ Test example renders its 940x940 logo at 1024 and 512 pixels and copies logo.svg next to them in one command.

Logo sizes

OutputPixelsSource
logo-1024.png1024x1024examples/cat-iq-test
logo-512.png512x512examples/cat-iq-test
logo.svgvectorcopy-source output
Preset "Logo"800, 400, 200 + SVGnpx open-assets add collection
Preset "Wordmark"1200x400, 600x200, 300x100 + SVGnpx open-assets add collection

Last verified: 2026-11-17 against lib/add.mjs and examples/cat-iq-test/assets.json.

Command and config

npx open-assets add collection   # pick "Logo (800x800, SVG)" or "Wordmark (1200x400, SVG)"
npx open-assets render --collection logo
assets.json (from examples/cat-iq-test)
{
  "id": "logo",
  "label": "Logo",
  "sourceSize": { "width": 940, "height": 940 },
  "templates": [{ "src": "public/logo.svg", "name": "logo" }],
  "export": [
    { "name": "logo-1024", "size": { "width": 1024, "height": 1024 } },
    { "name": "logo-512", "size": { "width": 512, "height": 512 } },
    { "name": "logo", "type": "copy-source", "format": "svg" }
  ]
}

Example output

The Cat IQ Test logo rendered from SVG by Open Assets at 512 pixels
logo-1024.png from examples/cat-iq-test (shown at 256px).

Steps

  1. Put your logo SVG in the project, for example public/logo.svg, with a viewBox that matches sourceSize.
  2. Add a logo collection (preset or the config above).
  3. Add PNG sizes as export entries and one copy-source entry for the SVG.
  4. Run npx open-assets render --collection logo.
  5. Point press kits, README badges and social profiles at the exports.

Gotchas

  • Transparent by default. PNGs keep transparency where the SVG paints nothing. Add a background rect for platforms that need an opaque logo.
  • Fonts in SVG. Convert text to paths, or the render uses whatever font the headless browser finds.
  • Copy-source only copies. It does not optimize the SVG; run SVGO yourself if size matters. See Output types.
  • No adaptive Android icons. Open Assets does not produce Android drawable or mipmap sets.

FAQ

See every output type

New to Open Assets?

See examples from shipped apps and install it in one command on open-assets.dev.

Last updated on

On this page