xref: /freebsd/contrib/cortex-strings/scripts/trim.sh (revision a8089ea5aee578e08acab2438e82fc9a9ae50ed8)
1#!/bin/bash
2#
3# Trims the whitespace from around any given images
4#
5
6for i in $@; do
7    convert $i -bordercolor white -border 1x1 -trim +repage -alpha off +dither -colors 32 PNG8:next-$i
8    mv next-$i $i
9done
10