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