133965Sjdp#!/bin/bash 233965Sjdp# 333965Sjdp# Trims the whitespace from around any given images 4130561Sobrien# 5130561Sobrien 6130561Sobrienfor i in $@; do 7130561Sobrien convert $i -bordercolor white -border 1x1 -trim +repage -alpha off +dither -colors 32 PNG8:next-$i 8130561Sobrien mv next-$i $i 9130561Sobriendone 10130561Sobrien