Opus SVG Converter

Opus SVG Converter

V1.1 - now skips non-shape tags

For converting (most) lineart SVG's into

  • Dual Mode - Making Directory Opus dual (dark/light) mode SVG's.
  • Plain - ReplacingcurrentColor with #ffffff

Some great SVG lineart resources here courtesy of @PassThePeas

SVG icons can now be compiled into an iconset using

Instructions

  • Put some SVG lineart images in a folder.
  • Click or Call SVG_Converter
  • Check the Dual Mode (Dark/Light) - Plain if not checked
  • Click the Convert button

A sub-folder is created with the converted SVG's.
The 2 different types of conversion will produce 2 differently named sub-folders.

The idea behind the Plain (replacing currentColor with #ffffff) mode is so that fill can be set to currentColor using Iconset Maker SVG

Commands

Command Type Values Description
DELETEVARS /O - Deletes all persistent variables

Script

see How to use buttons and scripts from this forum for instructions on how to install scripts.

V1.1 (12/6/2026)

Opus SVG converter.opusscriptinstall (48.1 KB)

enjoy :slight_smile:

8 Likes

With some icons of the Akar-icons collection (see "Behance Fill.svg") the Dual Mode conversion fails. The tool should not only ignore "non-shape tags" (defs in this case) but also everything whats inside defs even if the content matches a shape.
Behance.svg:

<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1599_271)">
<path d="M22 7H15V5H22V7ZM23.726 17C23.284 18.297 21.697 20 18.625 20C15.551 20 13.061 18.271 13.061 14.325C13.061 10.415 15.386 8.405 18.527 8.405C21.609 8.405 23.491 10.187 23.902 12.831C23.98 13.337 24.011 14.019 23.997 14.971H15.97C16.1 18.182 19.453 18.283 20.558 17H23.726ZM16.04 13H21.005C20.9 11.453 19.869 10.781 18.528 10.781C17.062 10.781 16.251 11.549 16.04 13ZM6.466 19.988H0V5.021H6.953C12.429 5.102 12.533 10.465 9.673 11.927C13.134 13.187 13.25 19.988 6.466 19.988ZM3 11H6.584C9.092 11 9.49 8 6.272 8H3V11ZM6.391 14H3V17.016H6.341C9.396 17.016 9.209 14 6.391 14Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_1599_271">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

the conversion result is completely white/black because the rect fills all the space.
EDIT: You may have noticed that you can't generally ignore the content between "non-shape tags" because "path" is between "g"-tags.

Many thanks - please try version 1.1 above.

I tried the new version with Akar-icons and created a dual mode iconset with the converted files and your Iconset Maker SVG.
All icons are looking fine now. Thank you for fixing that.