#67 mpdcover lightened

This commit is contained in:
luke bonham 2014-10-20 18:05:47 +02:00 committed by copycat-killer
parent 1a654b327d
commit 317fea4ca4
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# #
# A simple cover fetcher script for current playing song on mpd. # A simple cover fetcher script for current playing song on mpd.
# #
# Author : Wolfgang Mueller # Original author: Wolfgang Mueller
# #
# Adapted for Lain internal use. # Adapted for Lain internal use.
# https://github.com/copycat-killer/lain # https://github.com/copycat-killer/lain
@ -58,7 +58,7 @@ cover="${cover:=$DEFAULT_ART}"
# check if art is available # check if art is available
if [[ -n $cover ]]; then if [[ -n $cover ]]; then
if [[ -n $COVER_RESIZE ]]; then if [[ -n $COVER_RESIZE ]]; then
convert "$cover" -thumbnail $COVER_RESIZE -gravity "center" -background "$COVER_BACKGROUND" -extent $COVER_RESIZE "$TEMP_PATH" convert "$cover" -scale $COVER_RESIZE -gravity "center" -background "$COVER_BACKGROUND" "$TEMP_PATH"
cover="$TEMP_PATH" cover="$TEMP_PATH"
fi fi
else else