The following script modifies a selected image with another to produce a frame smoked transparent a few pixels.
# / bin / sh # This script
change the input image by adding a fuzzy frame
# Dependencies: imagemagick, bc
# # 2010 - ver 0.1 - bleish.wordpress.com
PATH = `pwd` [-n "$ PATH"] & & cd "$ PATH"
if [$ # - eq 0];
then zenity - title = "PDFJoin" - error - title = "Warning" \\
- text = "Select a file."
exit 1
fi
h = `identify-format '% h'" $ 1 "`
w = `identify-format '% w'" $ 1 "`
h1 = `echo $ h-5 xc:-draw "$ string"-blur 30x3-denied "$ MASK.png"
convert "$ TEMPFILE.png" "$ MASK.png" + matte-compose-composite CopyOpacity "c $ 1.png"
rm-f "$ MASK.png"
rm-f "$ TEMPFILE.png"
rm-f "$ tempfile"
rm-f "$ MASK"
E 'useful to include the script in the nautilus-scripts in ~ /. gnome2/nautilus-scripts
represented in the images below you can see the result of running the script.
0 comments:
Post a Comment