mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
in=$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
|
|
#convert +level 25% $in $out
|
|
#convert +level 30% $in $out
|
|
#convert -colorspace Gray $in $out
|
|
#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
|
|
|
|
# ------------------------------------------------
|
|
#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
|
|
|
|
# ------------------------------------------------
|
|
#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
|
|
|
|
|