summaryrefslogtreecommitdiff
path: root/logoconverter
diff options
context:
space:
mode:
Diffstat (limited to 'logoconverter')
-rw-r--r--logoconverter/backgrounds/bg1.pngbin0 -> 16135 bytes
-rw-r--r--logoconverter/backgrounds/bg2.pngbin0 -> 16239 bytes
-rw-r--r--logoconverter/backgrounds/bg3.pngbin0 -> 17074 bytes
-rw-r--r--logoconverter/backgrounds/bg4.pngbin0 -> 14402 bytes
-rw-r--r--logoconverter/backgrounds/fg1.pngbin0 -> 27916 bytes
-rw-r--r--logoconverter/backgrounds/fg2.pngbin0 -> 25492 bytes
-rw-r--r--logoconverter/backgrounds/fg3.pngbin0 -> 25123 bytes
-rw-r--r--logoconverter/backgrounds/fg4.pngbin0 -> 17836 bytes
-rw-r--r--logoconverter/make_background.sh33
9 files changed, 33 insertions, 0 deletions
diff --git a/logoconverter/backgrounds/bg1.png b/logoconverter/backgrounds/bg1.png
new file mode 100644
index 0000000..3260391
--- /dev/null
+++ b/logoconverter/backgrounds/bg1.png
Binary files differ
diff --git a/logoconverter/backgrounds/bg2.png b/logoconverter/backgrounds/bg2.png
new file mode 100644
index 0000000..9cf789d
--- /dev/null
+++ b/logoconverter/backgrounds/bg2.png
Binary files differ
diff --git a/logoconverter/backgrounds/bg3.png b/logoconverter/backgrounds/bg3.png
new file mode 100644
index 0000000..87d1f1c
--- /dev/null
+++ b/logoconverter/backgrounds/bg3.png
Binary files differ
diff --git a/logoconverter/backgrounds/bg4.png b/logoconverter/backgrounds/bg4.png
new file mode 100644
index 0000000..fd1e222
--- /dev/null
+++ b/logoconverter/backgrounds/bg4.png
Binary files differ
diff --git a/logoconverter/backgrounds/fg1.png b/logoconverter/backgrounds/fg1.png
new file mode 100644
index 0000000..b87e1d1
--- /dev/null
+++ b/logoconverter/backgrounds/fg1.png
Binary files differ
diff --git a/logoconverter/backgrounds/fg2.png b/logoconverter/backgrounds/fg2.png
new file mode 100644
index 0000000..f970b0b
--- /dev/null
+++ b/logoconverter/backgrounds/fg2.png
Binary files differ
diff --git a/logoconverter/backgrounds/fg3.png b/logoconverter/backgrounds/fg3.png
new file mode 100644
index 0000000..96932ca
--- /dev/null
+++ b/logoconverter/backgrounds/fg3.png
Binary files differ
diff --git a/logoconverter/backgrounds/fg4.png b/logoconverter/backgrounds/fg4.png
new file mode 100644
index 0000000..1b58ebf
--- /dev/null
+++ b/logoconverter/backgrounds/fg4.png
Binary files differ
diff --git a/logoconverter/make_background.sh b/logoconverter/make_background.sh
new file mode 100644
index 0000000..a2acbcb
--- /dev/null
+++ b/logoconverter/make_background.sh
@@ -0,0 +1,33 @@
+#!/bin/bash -e
+#set -x
+
+#CONFIG
+
+SOURCEDIR=/etc/vdr/plugins/skinnopacity/logos
+OUTPUTDIR=/etc/vdr/plugins/skinnopacity/logos_darkred
+FOREGROUND=/usr/local/src/VDR/PLUGINS/src/skinnopacity/logoconverter/backgrounds/fg4.png
+BACKGROUND=/usr/local/src/VDR/PLUGINS/src/skinnopacity/logoconverter/backgrounds/bg2.png
+
+#MAIN
+IFS=$'\n'
+FILES=$(find $SOURCEDIR -name *.png | sort)
+sedstring="s!$SOURCEDIR!$OUTPUTDIR!g"
+
+[ ! -d $SOURCEDIR ] && (echo "ERR: $SOURCEDIR1 not found"; exit 1);
+[ ! -f $FOREGROUND ] && (echo "ERR: $FOREGROUND not found"; exit 1);
+[ ! -f $BACKGROUND ] && (echo "ERR: $BACKGROUND not found"; exit 1);
+
+echo "Convert new logos to format $(basename $OUTPUTDIR)"
+for file in $FILES; do
+ targetdir=`dirname $file | sed -e $sedstring`
+ targetfile="$targetdir/$(basename $file)"
+ if [ ! -f $targetfile ] ; then
+ echo $targetfile
+ [ ! -d $targetdir ] && mkdir -p $targetdir
+ convert +dither -background 'transparent' -resize '220x164' -extent '268x200' -gravity 'center' "$file" png:- 2> /dev/null | \
+ composite - $BACKGROUND png:- 2> /dev/null | \
+ composite -compose screen -blend 50x100 $FOREGROUND - "$targetfile" 2> /dev/null
+ fi
+done
+
+exit 0