From: Chris Koeritz Date: Thu, 9 Feb 2017 12:35:03 +0000 (-0500) Subject: updated msp converters X-Git-Tag: 2.140.90~200 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=36dfc6c0919590a9d4923a463616db044532b056;p=feisty_meow.git updated msp converters --- diff --git a/scripts/pictures/batch_convert_msp2png.sh b/scripts/pictures/batch_convert_msp2png.sh new file mode 100644 index 00000000..84d7c53c --- /dev/null +++ b/scripts/pictures/batch_convert_msp2png.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# converts ancient microsoft paint files to PNG format using recoil. +# arose from a question on askubuntu: http://askubuntu.com/questions/881412/how-can-i-convert-really-old-files-in-microsoft-paint-format-msp-to-a-usabl +# requires recoil to be installed: http://recoil.sourceforge.net/ + +# run two phases since sometimes the ending is capitalized. +for suffix in .msp .MSP; do + if [ ! -z "$(ls *${suffix} 2>/dev/null)" ]; then + for i in *${suffix} ; do recoil2png -o $(basename $i ${suffix}).png $i ; done + fi +done +