2021-07-29 05:44:12 -07:00
|
|
|
#!/usr/bin/env sh
|
2021-07-29 00:37:35 -07:00
|
|
|
# YES_ZSH
|
2021-07-29 05:44:12 -07:00
|
|
|
# YES_BASH
|
|
|
|
# YES_DASH
|
2021-07-29 00:37:35 -07:00
|
|
|
|
2021-07-30 17:57:08 -07:00
|
|
|
tpad() { ### @-
|
|
|
|
### add a 1px transparent border around an image to prevent twitter from mangling it into a jpg.
|
|
|
|
### sadly, this trick doesn't work anymore.
|
2021-07-29 05:44:12 -07:00
|
|
|
for f; do
|
|
|
|
gm convert -bordercolor "#000000FF" -border 1x1 "$f" "${f%.png}.tt.png"
|
2017-04-02 03:54:00 -07:00
|
|
|
done
|
|
|
|
}
|
2021-07-29 00:37:35 -07:00
|
|
|
|
|
|
|
[ "${SOURCING:-0}" -gt 0 ] || tpad "$@"
|