This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: 15 Jul 23, 16:33 Last Post By: wiesweg
wiesweg

Posts: 5
Registered: 9-Mar-2012
Variable in jAlbum-index.htt
Posted: 15 Jul 23, 10:39
 
  Click to reply to this thread Reply
My question: How can I get jAlbum to specify the correct width and height in the index.html for the generated thumbnails?

Background: I use a very simple skin for my slideshows created with jAlbum, which I copied together myself. The jAlbum files only contain HTML and CSS - no Javascript. With this I achieve very good values in Google's PageSpeed tool.

The problem:
  • In jAlbum (latest version) I enter the maximum size (e.g. 300x225) of the thumbnails in "Settings - Images - Main page - Image dimensions - Thumbnails".
  • In the generated index.html ALL thumbnails are now indicated with "width=300;" and "height=225;", although not all pictures are in "landscape-format" or have other widths or heights. See example 1 at https://wiesweg.de/ja/beispiel1/index.html
  • Consequently, I manually change these specifications of heights and widths of the thumbnails in the index.html - see https://wiesweg.de/ja/beispiel2/index.html .

I have searched nearly most of the support pages of jAlbum to achieve correct size specifications for the thumnails in the "index.htt" with corresponding variables for thumbnail-width and -height. I tried replacing the existing width="${maxThumbWidth}" height="${maxThumbHeight}" with "${ThumbWidth}" and "${ThumbHeight}". No success, because this resulted in empty values for width and height, because both variables are no longer valid in jAlbum.

In "slide.htt" I use width="${imageWidth}" and height="${imageHeight}" - and with this I get correct size information in the slide files.

So my question to the jAlbum experts: Are there valid variables for width and height of the thumbmails in jAlbum for the "index.htt" that indicate the correct sizes?

Thanks a lot for an answer or any other ideas.
Laza

Posts: 1,698
Registered: 6-Sep-2005
Re: Variable in jAlbum-index.htt
Posted: 15 Jul 23, 11:04   in response to: wiesweg in response to: wiesweg
 
  Click to reply to this thread Reply
Simply ${thumbWidth} and ${thumbHeight} are supposed to work. (with lowercase "t")
JeffTucker

Posts: 7,994
Registered: 31-Jan-2006
Re: Variable in jAlbum-index.htt
Posted: 15 Jul 23, 14:46   in response to: wiesweg in response to: wiesweg
 
  Click to reply to this thread Reply
wiesweg wrote:
So my question to the jAlbum experts: Are there valid variables for width and height of the thumbmails in jAlbum for the "index.htt" that indicate the correct sizes?

And you never need to guess. All are case-sensitive, of course:

https://jalbum.net/help/Variables
wiesweg

Posts: 5
Registered: 9-Mar-2012
Re: Variable in jAlbum-index.htt
Posted: 15 Jul 23, 16:33   in response to: wiesweg in response to: wiesweg
 
  Click to reply to this thread Reply
Oh my God - wonderful! Thanks a lot, it works!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums