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)

Subscribe to a curated newsletter

Receive an email every week with curated content about Dart and Flutter.

See previous issues of the newsletter.