#!/bin/bash
convert xc:"rgb(0, 0, 0)" xc:"rgb(0, 0, 255)" xc:"rgb(255, 0, 0)" xc:"rgb(0, 255, 0)" xc:"rgb(255, 128, 0)" xc:"rgb(255, 255, 0)" xc:"rgb(255, 255, 255)" +append palette.gif
filename=$1
convert $filename -resize 600x448^ -gravity center -extent 600x448 -remap palette.gif ${filename%.*}-converted.bmp
