diff options
author | Antonio Rojas | 2016-01-03 12:28:38 +0100 |
---|---|---|
committer | Antonio Rojas | 2016-01-03 12:28:38 +0100 |
commit | f45415619bcee506860564c2822ae51ff3c69974 (patch) | |
tree | 6e629b2b8c8f041fc1e9c3b737e1930aaf570221 /stripPicture | |
parent | d02d097098d62208c4162cff7d2a2fa3bd486bd6 (diff) | |
download | aur-f45415619bcee506860564c2822ae51ff3c69974.tar.gz |
Update to 0.3
Diffstat (limited to 'stripPicture')
-rw-r--r-- | stripPicture | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/stripPicture b/stripPicture index 2ca1706b78ee..9c0319938dcc 100644 --- a/stripPicture +++ b/stripPicture @@ -1,28 +1,24 @@ #!/bin/sh -# Usage: stripPicture fileaname +# Usage: stripPicture fullname mime exportPicture fullname="$1" -filename=$(basename "$1") -extension="${filename##*.}" +mime="$2" +exportPicture="$3" -mkdir -p $HOME/.config/keneric -exportPicture=$HOME/.config/keneric/UseThisPicture.png +# thumbnail options by mime type +case "$mime" in -# thumbnail options by extension type -case "$extension" in - - - kra|Kra|KRA) + application/x-krita) unzip -p "$fullname" preview.png > "$exportPicture" exit ;; - ora|Ora|ORA) + image/openraster) unzip -p "$fullname" Thumbnails/thumbnail.png > "$exportPicture" exit ;; - blend|Blend|BLEND) + application/x-blender) blender-thumbnailer.py "$fullname" "$exportPicture" exit ;; |