Convert all SVG files in a folder to PNG
1 min read

Convert all SVG files in a folder to PNG

I changed the way I create posts in this website. The new way automates most of the boring tasks.

One downside is that it does not work well with SVG files.

I had to convert all the SVG files in my site to PNG.

First I installed inkscape:

brew install inkscape

Then I run this command from the folder where all my SVG files are:

inkscape --export-type="png" $(ls -q)

Wanna stay up-to-date with Flutter and Dart?

Subscribe to get a weekly email with the best articles about Flutter and Dart.

    We won't send you spam. Unsubscribe at any time.