Member
Member
davidarnoult   2019-05-04, 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:
<pre>[code]
printCustomSizedImage(getAnnotatedImageTitle(), 180, 180, 0, 0, 0, 0, 0, "img-fluid img-thumbnail" );
[/code]</pre>
produces all thumbnails with fixed width; height is variable and can be higher than width.

Album
<pre>[code]
printCustomAlbumThumbImage(getBareAlbumTitle(), 180, 180, 0);
[/code]</pre>
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   2019-05-05, 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   2019-05-06, 18:58
#3
Thank you, it solved my problem! Cheers @fretzl !
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.