X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fa1baa8997253a31c90c3ef363dbf0596b9165fd..d617e1a37693d4a4ee76bdd1948dba8a515247ff:/scripts/mpdcover diff --git a/scripts/mpdcover b/scripts/mpdcover index 20525fd..6f9062c 100755 --- a/scripts/mpdcover +++ b/scripts/mpdcover @@ -1,8 +1,8 @@ -!/bin/bash +#!/bin/bash # # A simple cover fetcher script for current playing song on mpd. # -# Author : Wolfgang Mueller +# Original author: Wolfgang Mueller # # Adapted for Lain internal use. # https://github.com/copycat-killer/lain @@ -58,7 +58,7 @@ cover="${cover:=$DEFAULT_ART}" # check if art is available if [[ -n $cover ]]; 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" fi else