Album Thumbnails with fixed width

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:

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

produces all thumbnails with fixed width; height is variable and can be higher than width.

Album

printCustomAlbumThumbImage(getBareAlbumTitle(), 180, 180, 0);

generates thumbnail with max height = specified width and therefore the thunbnail width is not correct (smaller). Is there a way to fix this ?

Thanks!

Comments

  • fretzl Administrator, Developer
    edited May 2019

    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" );
    
  • Thank you, it solved my problem! Cheers @fretzl !

Sign In or Register to comment.