From 34470b213538ae13e9b25d78c49d56e0befba2f2 Mon Sep 17 00:00:00 2001
From: neodarz <neodarz@neodarz.net>
Date: Fri, 22 Jun 2018 13:09:15 +0200
Subject: Add beautiful scot

---
 scripts/.scripts/dropshadow.sh | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100755 scripts/.scripts/dropshadow.sh

(limited to 'scripts')

diff --git a/scripts/.scripts/dropshadow.sh b/scripts/.scripts/dropshadow.sh
new file mode 100755
index 0000000..472cd0e
--- /dev/null
+++ b/scripts/.scripts/dropshadow.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+# NAME:         dropshadow.sh
+# VERSION:      
+# AUTHOR:       (c) 2013 Glutanimate
+# DESCRIPTION:  - adds transparent dropshadow to images (e.g. screenshots)
+#               - moves them to predefined screenshot folder
+# FEATURES:     
+# DEPENDENCIES: imagemagick suite
+#
+# LICENSE:      MIT license (http://opensource.org/licenses/MIT)
+#
+# NOTICE:       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+#               INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+#               PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+#               LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+#               TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 
+#               OR OTHER DEALINGS IN THE SOFTWARE.
+#
+#
+# USAGE:        dropshadow.sh <image>
+
+SCREENSHOTFOLDER="$HOME/screenshots"
+
+
+FILE="${1}"
+FILENAME="${FILE##*/}"
+FILEBASE="${FILENAME%.*}"
+
+convert "${FILE}" \( +clone -background black -shadow 80x20+0+15 \) +swap -background transparent -layers merge +repage "$SCREENSHOTFOLDER/${FILEBASE}.png"
-- 
cgit v1.2.1