Member
Member
davidarnoult   04-05-2019, 23:24
#1

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!

Administrator
Administrator
fretzl   05-05-2019, 08:00
#2

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" );
Member
Member
davidarnoult   06-05-2019, 18:58
#3

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.