3
###################################################
5
# Copyright (C) 2008, 2009 TualatriX <tualatrix@gmail.com>
7
# This file is part of Shutter.
9
# Shutter is free software; you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 3 of the License, or
12
# (at your option) any later version.
14
# Shutter is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with Shutter; if not, write to the Free Software
21
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
###################################################
25
TEXTDOMAIN=shutter-plugins
26
TEXTDOMAINDIR=$SHUTTER_INTL
27
PLUGIN_NAME=$"hard shadow"
29
PLUGIN_TIP=$"a black hard shadow on transparent background"
30
PLUGIN_EXT="image/png"
32
if [[ "${1}" = "name" ]];then
35
elif [[ "${1}" = "sort" ]];then
38
elif [[ "${1}" = "tip" ]];then
41
elif [[ "${1}" = "ext" ]];then
52
convert "${FILE}" -gravity northwest -background 'rgba(255,255,255,0)' -splice 10x10 \
53
\( +clone -background gray -shadow 80x3-1-1 \) +swap -background none -mosaic +repage \
54
\( +clone -background gray -shadow 80x3+5+5 \) +swap -background none -mosaic +repage "${FILE}"