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: Add support for target file to convert-to-greyed-out-image.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
f6e64d35d9
commit
4e231c9d88
1 changed files with 13 additions and 1 deletions
|
|
@ -1,7 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
in=$1
|
||||
out=`echo $1 | sed 's/\.\([^.]\+$\)/-greyed-out.\1/'`
|
||||
if [ "$2" ]; then
|
||||
out="$2"
|
||||
else
|
||||
out=`echo $1 | sed 's/\.\([^.]\+$\)/-greyed-out.\1/'`
|
||||
fi
|
||||
|
||||
#convert -monochrome $in $out
|
||||
#convert -monochrome -opaque \#e5e5e5 $in $out
|
||||
#convert -modulate 100,40 $in $out
|
||||
|
|
@ -11,6 +16,7 @@ out=`echo $1 | sed 's/\.\([^.]\+$\)/-greyed-out.\1/'`
|
|||
#convert +level 30% -colorspace Gray $in $out
|
||||
convert -colorspace Gray +level 30% -brightness-contrast 35 $in $out
|
||||
|
||||
|
||||
# TODO: overlay same image, 1px shifted down and right, with different gray level
|
||||
|
||||
# ------------------------------------------------
|
||||
|
|
@ -19,3 +25,9 @@ convert -colorspace Gray +level 30% -brightness-contrast 35 $in $out
|
|||
#composite -size 48x48 xc:$BGCOL -compose copy small-text.png mask.miff
|
||||
#composite small-text.png -compose atop mask.miff apmask.miff
|
||||
|
||||
# ------------------------------------------------
|
||||
#convert $in \( +clone -background black -shadow 75x0+0-5 \) \
|
||||
# \( -clone 0 -alpha off -virtual-pixel black -motion-blur 0x3-90 -alpha on \) \
|
||||
# -delete 0 -background none -layers merge +repage $out
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue