Rescale album art when heigt is greater than 1000px, too.
This commit is contained in:
parent
1a4e4ba86f
commit
20e1f1b3d6
|
@ -264,7 +264,7 @@ void OutgoingDataCreator::CreateSong(
|
||||||
if (!art.isNull()) {
|
if (!art.isNull()) {
|
||||||
QImage small;
|
QImage small;
|
||||||
// Check if we resize the image
|
// Check if we resize the image
|
||||||
if (art.width() > 1000) {
|
if (art.width() > 1000 || art.height() > 1000) {
|
||||||
small = art.scaled(1000, 1000, Qt::KeepAspectRatio);
|
small = art.scaled(1000, 1000, Qt::KeepAspectRatio);
|
||||||
} else {
|
} else {
|
||||||
small = art;
|
small = art;
|
||||||
|
|
Loading…
Reference in New Issue