mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
convert-to-greyed-out-image.sh, upload.sh: Add convert-to-greyed-out-image.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2553a3f0a5
commit
c0b7a4e145
2 changed files with 18 additions and 0 deletions
17
scripts/convert-to-greyed-out-image.sh
Normal file
17
scripts/convert-to-greyed-out-image.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
in=$1
|
||||
out=`echo $1 | sed 's/\.\([^.]\+$\)/-greyed-out.\1/'`
|
||||
#convert -monochrome $in $out
|
||||
#convert -monochrome -opaque \#e5e5e5 $in $out
|
||||
#convert -modulate 100,40 $in $out
|
||||
#convert +level 25% $in $out
|
||||
convert +level 30% $in $out
|
||||
|
||||
|
||||
# ------------------------------------------------
|
||||
#convert small.miff -modulate 100,40 small-grey.miff
|
||||
#montage -fill black -font $P/LucidaGrande.ttf -pointsize 10 -geometry +0+0 -label "${LABEL}" -background transparent small-grey.miff small-text.png
|
||||
#composite -size 48x48 xc:$BGCOL -compose copy small-text.png mask.miff
|
||||
#composite small-text.png -compose atop mask.miff apmask.miff
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue