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