ZenphotoCMS Forum
Album Thumbnails with fixed width - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Album Thumbnails with fixed width (/thread-13238.html)



Album Thumbnails with fixed width - davidarnoult - 2019-05-04

Hi,

I wish to generate all thumbnails with same width for album+image.
I have followed instructions here to generate fixed thumbnails for images and albums:
https://forum.zenphoto.org/discussion/comment/1977460
Image:
[code]
printCustomSizedImage(getAnnotatedImageTitle(), 180, 180, 0, 0, 0, 0, 0, "img-fluid img-thumbnail" );
[/code]
produces all thumbnails with fixed width; height is variable and can be higher than width.

Album
[code]
printCustomAlbumThumbImage(getBareAlbumTitle(), 180, 180, 0);
[/code]
generates thumbnail with max height = specified width and therefore the thunbnail width is not correct (smaller). Is there a way to fix this ?

Thanks!




Album Thumbnails with fixed width - fretzl - 2019-05-05

Try

printCustomAlbumThumbImage(getBareAlbumTitle(), null, 180);

Oh, and

printCustomSizedImage(getAnnotatedImageTitle(), 180, 180, 0, 0, 0, 0, 0, "img-fluid img-thumbnail" );

should be

printCustomSizedImage(getAnnotatedImageTitle(), null, 180, null, null, null, null, null, "img-fluid img-thumbnail" );



Album Thumbnails with fixed width - davidarnoult - 2019-05-06

Thank you, it solved my problem! Cheers @fretzl !