I think I cracked it.
Change template-functions.php
Line 1309-1323
From
`
function printCustomAlbumThumbMaxSpace($alt='', $width=NULL, $height=NULL, $class=NULL, $id=NULL) {
global $_zp_current_album;
$destshape = $width > $height;
$albumthumb = $_zp_current_album->getAlbumThumbImage();
$sourceshape = $albumthumb->get('width') > $albumthumb->get('height');
if ($sourceshape == $destshape) { // the soruce and destination orientations are the same
printCustomAlbumThumbImage($alt, min($width, $height), NULL, NULL, NULL, NULL, NULL, NULL, $class, $id);
} else{
if ($sourceshape > $destshape) { // landscape to portrait, width is constrained
printCustomAlbumThumbImage($alt, NULL, $width, NULL, NULL, NULL, NULL, NULL, $class, $id);
} else { // portrait to landscape, height is constrained
printCustomAlbumThumbImage($alt, NULL, NULL, $height, NULL, NULL, NULL, NULL, $class, $id);
}
}
}
`
to
`
function printCustomAlbumThumbMaxSpace($alt='', $width=NULL, $height=NULL, $class=NULL, $id=NULL) {
global $_zp_current_album;
$sourcew = $width > $height;
$sourceh = $height > $width;
if ($sourcew == $sourceh) { // the soruce and destination orientations are the same
printCustomAlbumThumbImage($alt, min($width, $height), NULL, NULL, NULL, NULL, NULL, NULL, $class, $id);
} else{
if ($sourcew > $sourceh) { // landscape to portrait, width is constrained
printCustomAlbumThumbImage($alt, NULL, $width, NULL, NULL, NULL, NULL, NULL, $class, $id);
} else { // portrait to landscape, height is constrained
printCustomAlbumThumbImage($alt, NULL, NULL, $height, NULL, NULL, NULL, NULL, $class, $id);
}
}
}
`
EDIT: did some minor tweaks.
EDIT: and of course global `$_zp_current_album;` shouldn't be needed there any more as well
EDIT: Can it really be this easy?