[gen_small_cover] Fixed bug where image would not be cropped
This commit is contained in:
parent
1bbfed1313
commit
e7596f0f82
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
gen_small_cover() {
|
||||
local COVER="${1}"
|
||||
convert "${COVER}" -resize 480x480^ -gravity center "$(sed 's|.png|.jpg|' <<<${COVER})"
|
||||
convert "${COVER}" -resize 480x480^ -gravity center -extent 480x480x0x0 "$(sed 's|.png|.jpg|' <<<${COVER})"
|
||||
local EXIT=$?
|
||||
cat "$(sed 's|.png|.jpg|' <<<${COVER})"
|
||||
[[ ${EXIT} -ne 0 ]] && return 1
|
||||
|
|
Loading…
Reference in a new issue