xref: /freebsd/contrib/cortex-strings/scripts/trim.sh (revision 5dae51da3da0cc94d17bd67b308fad304ebec7e0)
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