Created
December 5, 2013 15:41
-
-
Save polymorphm/7807722 to your computer and use it in GitHub Desktop.
Goodzone Fabric Convert script copied from http://tmp4747.narod.ru/2010-07-21-19-41-goodzone-fabric-convert/index.xhtml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: sh; coding: utf-8 -*- | |
GOODZONE_FABRIC_WATERMARK_IMG=/home/regular-user/work/goodzone-fabric-convert/data/watermark.png | |
goodzone_fabric_convert_ico () { | |
mogrify -resize 160x160 "$@" | |
} | |
goodzone_fabric_convert_watermark () { | |
composite -compose atop -gravity center "$GOODZONE_FABRIC_WATERMARK_IMG" "$1" "$1" | |
} | |
goodzone_fabric_convert () { | |
mogrify -resize 800 "$@" | |
for arg | |
do | |
goodzone_fabric_convert_watermark "$arg" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment