summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2005-08-20 04:54:21 +0000
committerAndreas Brachold <vdr07@deltab.de>2005-08-20 04:54:21 +0000
commitcb534886201ab059c49d5d5ac4a204ba0d4c71fa (patch)
tree164baba6e3c14db2151118cc05cbb832b08e9f8d
parent28818acea3c22032523a4f1975545d4e490e1b01 (diff)
downloadvdr-plugin-image-cb534886201ab059c49d5d5ac4a204ba0d4c71fa.tar.gz
vdr-plugin-image-cb534886201ab059c49d5d5ac4a204ba0d4c71fa.tar.bz2
- fix scripts/maverickplugin.sh: better format for resolution retrieval
-rw-r--r--HISTORY7
-rwxr-xr-xscripts/maverickplugin.sh2
2 files changed, 8 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index ddb120d..0df0f85 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,6 +1,13 @@
VDR Plugin 'image' Revision History
-----------------------------------
+2005-08-19
+- fix scripts/maverickplugin.sh: better resolution retrieval (provided by kc_captain-at-vdr-portal de)
+
+2005-08-16
+- remove redundant code
+- now for compiled are at the least VDR 1.3.28 required
+
2005-07-27
- add option for border of underscan
diff --git a/scripts/maverickplugin.sh b/scripts/maverickplugin.sh
index 1b41869..f6888f9 100755
--- a/scripts/maverickplugin.sh
+++ b/scripts/maverickplugin.sh
@@ -76,7 +76,7 @@ fi
else
# Get image resolution
- RES=`echo $( identify "$INFILE" | cut -d " " -f 3 )` # checked with imagemagick 6.0.6,
+ RES=`echo $( identify -format "%wx%h" "$INFILE" )` # checked with imagemagick 6.0.6 ...
# Parse identify output image.jpg JPEG 3456x2304 DirectClass 4.7mb 3.720u 0:04
X_RES=$(echo -e "$RES"| cut -d "x" -f 1)
Y_RES=$(echo -e "$RES"| cut -d "x" -f 2)