From 36dfc6c0919590a9d4923a463616db044532b056 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 9 Feb 2017 07:35:03 -0500 Subject: [PATCH] updated msp converters --- scripts/pictures/batch_convert_msp2png.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/pictures/batch_convert_msp2png.sh 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 + -- 2.34.1