Batch command for ImageMagick to convert all files in a directory and sub-directories on windows August 18, 2023 by Tarik you don’t need shell scripting just use the mogrify command cd to your image directory mogrify -format png *.svg