Fixed bug for cover
This commit is contained in:
parent
d23cc0079f
commit
df603da5f8
1 changed files with 15 additions and 15 deletions
|
@ -84,7 +84,7 @@ for image in {*.jpg,*.JPG} ; do
|
||||||
# Compute new image size based on image type
|
# Compute new image size based on image type
|
||||||
if [ "${image}" == "${COVERFILE}" ] ; then
|
if [ "${image}" == "${COVERFILE}" ] ; then
|
||||||
# Compute temporary with or height to crop correctly image
|
# Compute temporary with or height to crop correctly image
|
||||||
if [ "${COVERRATIO}" -gt "${TMPIMAGERATIO}" ] ; then
|
if (( $(echo "${COVERRATIO} >= ${TMPIMAGERATIO}" | bc -l) )) ; then
|
||||||
NEWHEIGHT=$((${WIDTH}*${COVERHEIGHT}/${COVERWIDTH}))
|
NEWHEIGHT=$((${WIDTH}*${COVERHEIGHT}/${COVERWIDTH}))
|
||||||
else
|
else
|
||||||
NEWWIDTH=$((${HEIGHT}*${COVERWIDTH}/${COVERHEIGHT}))
|
NEWWIDTH=$((${HEIGHT}*${COVERWIDTH}/${COVERHEIGHT}))
|
||||||
|
|
Loading…
Reference in a new issue