diff options
author | Andreas Brachold <vdr07@deltab.de> | 2005-07-26 15:46:37 +0000 |
---|---|---|
committer | Andreas Brachold <vdr07@deltab.de> | 2005-07-26 15:46:37 +0000 |
commit | 57ff8fb8eb79adfebfaf43c884eac70e3ffb2b2c (patch) | |
tree | 5cc9452ece6fa76e3cac3f3575807a897c58f35d /scripts/imageplugin.sh | |
parent | 8fc94579f1e868dfe1e4bb5e80c52d552bae3b0a (diff) | |
download | vdr-plugin-image-57ff8fb8eb79adfebfaf43c884eac70e3ffb2b2c.tar.gz vdr-plugin-image-57ff8fb8eb79adfebfaf43c884eac70e3ffb2b2c.tar.bz2 |
- rotate pictures now in several 90° steps
Diffstat (limited to 'scripts/imageplugin.sh')
-rwxr-xr-x | scripts/imageplugin.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/imageplugin.sh b/scripts/imageplugin.sh index 73635c1..7242413 100755 --- a/scripts/imageplugin.sh +++ b/scripts/imageplugin.sh @@ -3,7 +3,8 @@ # needs : netpbm-progs > anytopnm pnmscalefixed pnmfile pnmcut pnmflip # # History: -# 2005-06-17 wrong lookup for pnmscale and really are pnmscalefixed used +# 2005-07-26 add commando for rotate 180 +# 2005-07-18 wrong lookup for pnmscale and really are pnmscalefixed used # 2004-08-12 Initalrelease, Andreas Brachold <vdr04-at-deltab.de> # base on prior work for convert.sh # by Onno Kreuzinger <o.kreuzinger-at-kreuzinger.biz> @@ -39,7 +40,7 @@ if [ $# -lt 7 ] ; then echo "ZOOMFACTOR - Zoomfactor (0....10)" 1>&2 echo "LEFTPOS - Offset from left on Zoommode (0......)" 1>&2 echo "TOPPOS - Offset from top on Zoommode (0......)" 1>&2 - echo "FLIPCMD - optional should image flip (left,right,original)" 1>&2 + echo "FLIPCMD - optional should image flip (left,right,rotated,original)" 1>&2 exit 1 fi @@ -99,6 +100,9 @@ fi FLIP="pnmflip -rotate90"; SWAPRES=$X_RES;X_RES=$Y_RES;Y_RES=$SWAPRES ;; + rotated ) + FLIP="pnmflip -rotate180"; + ;; *) FLIP="cat"; ;; |