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
| Output | Pixels | Source |
|---|---|---|
logo-1024.png | 1024x1024 | examples/cat-iq-test |
logo-512.png | 512x512 | examples/cat-iq-test |
logo.svg | vector | copy-source output |
| Preset "Logo" | 800, 400, 200 + SVG | npx open-assets add collection |
| Preset "Wordmark" | 1200x400, 600x200, 300x100 + SVG | npx 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{
"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

Steps
- Put your logo SVG in the project, for example
public/logo.svg, with aviewBoxthat matchessourceSize. - Add a
logocollection (preset or the config above). - Add PNG sizes as export entries and one
copy-sourceentry for the SVG. - Run
npx open-assets render --collection logo. - 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
Yes. A copy-source output with "format": "svg" copies the SVG source into the export folder next to the PNGs.
Common picks are 1024 and 512 pixels square, plus the SVG. The Logo preset uses 800, 400 and 200.
Yes, but you lose the SVG copy. Use SVG when you need a vector file.
Yes. Reference the same SVG from the icon template so both update on the next render. See Xcode app icon.
Related
New to Open Assets?
See examples from shipped apps and install it in one command on open-assets.dev.
Last updated on
Favicons and PWA Icons
Generate favicon, apple-touch-icon and PWA manifest icons from one HTML or SVG template, written into public/ with outFile. Covers PNG only output and .ico.
Launch Kit
Build a Product Hunt gallery, social banners and launch images as tagged collections, then render the whole launch kit with one command or a single tag filter.