diff options
author | DT Netsolution GmbH <[email protected]> | 2012-02-05 19:38:10 (GMT) |
---|---|---|
committer | DT Netsolution GmbH <[email protected]> | 2012-02-05 19:38:10 (GMT) |
commit | b93d43e14027596578197b372ca30726eb012d32 (patch) | |
tree | 693741fea4fff96c4d997d6d24d53f61d71eaf2c /lib/builder-utils.sh | |
parent | 6336aa67b4fd67afe53ed37f1b9fc7852b516a8d (diff) |
- new: customize calling command "identity", "unix2dos" by using $CMD_identify, $CMD_unix2dos
- improvement: changed name of tmp-directory (date format)
Diffstat (limited to 'lib/builder-utils.sh')
-rw-r--r-- | lib/builder-utils.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh index ba62596..9c8f3b9 100644 --- a/lib/builder-utils.sh +++ b/lib/builder-utils.sh @@ -130,9 +130,9 @@ convert_image() { local src=$1 local dst=$2 - local hight=`identify -format "%h" $src` - local wight=`identify -format "%w" $src` - identify -format "%wx%h" $src + local hight=`${CMD_identify} -format "%h" $src` + local wight=`${CMD_identify} -format "%w" $src` + ${CMD_identify} -format "%wx%h" $src if [ $wight -lt $hight ] ; then # Its higher so force x160 and let imagemagic decide the right wight @@ -165,8 +165,8 @@ convert_image() { # New size # identify -format "%wx%h" $dst - hight=`identify -format "%h" $dst` - wight=`identify -format "%w" $dst` + hight=`${CMD_identify} -format "%h" $dst` + wight=`${CMD_identify} -format "%w" $dst` log_debug "Opsi Icon Wight: $wight Hight: $hight" } |