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