6
TEXTDOMAIN=shutter-plugins
7
TEXTDOMAINDIR=$SHUTTER_INTL
8
PLUGIN_NAME=$"torned paper"
10
PLUGIN_TIP=$"generates a torned-border"
11
PLUGIN_EXT="image/png"
13
if [[ "${1}" = "name" ]];then
16
elif [[ "${1}" = "sort" ]];then
19
elif [[ "${1}" = "tip" ]];then
22
elif [[ "${1}" = "ext" ]];then
25
elif [[ "${1}" = "lang" ]];then
36
# Generate torned effect
38
convert "${FILE}" \( +clone -threshold -1 -virtual-pixel black \
39
-spread 10 -blur 0x3 -threshold 50% -spread 1 -blur 0x.7 \) \
40
+matte -compose Copy_Opacity -composite "${FILE}"
45
convert "${FILE}" \( +clone -background black -shadow 80x3+5+5 \) \
46
+swap -background none -mosaic +repage "${FILE}"