[Xfce-bugs] [Bug 14576] Add support for folder.jpg

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Aug 25 12:06:11 CEST 2018


https://bugzilla.xfce.org/show_bug.cgi?id=14576

--- Comment #77 from HYPERION <h1p8r10n at yandex.com> ---
#!/bin/bash

convert -thumbnail "$1" "$2/folder.jpg" "$3" 1>/dev/null 2>&1 ||\
convert -thumbnail "$1" "$2/.folder.jpg" "$3" 1>/dev/null 2>&1 ||\
convert -thumbnail "$1" "$2/folder.png" "$3" 1>/dev/null 2>&1 ||\
convert -thumbnail "$1" "$2/cover.jpg" "$3" 1>/dev/null 2>&1 ||\
rm -f "$HOME/.cache/thumbnails/normal/$(echo -n "$4" | md5sum | cut -d " "
-f1).png" ||\
rm -f "$HOME/.thumbnails/normal/$(echo -n "$4" | md5sum | cut -d " " -f1).png"
||\
rm -f "$HOME/.cache/thumbnails/large/$(echo -n "$4" | md5sum | cut -d " "
-f1).png" ||\
rm -f "$HOME/.thumbnails/large/$(echo -n "$4" | md5sum | cut -d " " -f1).png"
||\
exit 1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list