#!/usr/bin/bash

for file in *.svg; do
        BN=$(basename $file .svg)
        inkscape --without-gui --export-png="${BN}.png" --export-dpi 300 $file
        convert -compress LZW -alpha remove "${BN}.png" "${BN}.tiff"
        mogrify -alpha off "${BN}.tiff"
        mv "${BN}.tiff" export/.
        rm "${BN}.png"
done
