I don't know if this is related, but I found some similar "strange" behavior of the
imageWidth and
imageHeight variables:
Scenario:
I add an MP4 video-file to my album, as a link.
In the Video album-settings I select: Resolution = Do not re-encode.
The image bounds for images are: 1200 x 1200.
The actual size of the video is: 1920 x 1080.
When I create the album, jAlbum extracts one of the first frames from the video and saves it as a jpg-file, with the same name as the video-file. The mp4-file and the jpg-file are stored in a slides-folder in the output directory.
When I look at these files in the output-directory, I see that the jpg-file has a size of 1200 x 675 (so it is scaled-down according to the image bounds settings) and that the mp4-file is not scaled (1920 x 1080). This is what I would expect.
The related size-variables for the video-object have the following values:
imageWidth x imageHeight =
1200 x 675 (correct)
originalWidth x originalHeight = 1920 x 1080 (correct)
Now I right-click on the video-thumbnail in the explorer pane, select: "
Use original" and re-create the album (using "Force remake").
When I look again at the files in the output directory, I see that the actual sizes have not changed (1200 x 675 for the jpg-file and 1920 x 1080 for the mp4-file). Again as expected.
However, the related size-variables for the video-object now have the following values:
imageWidth x imageHeight =
1920 x 1080 (not correct!)
originalWidth x originalHeight = 1920 x 1080 (correct)
I don't know if this is a bug or intended behavior, but I find it confusing. I would expect that the variables
imageWidth and
imageHeight refer to the
image -file that resides in the location which is indicated by the variable
imagePath. But apparently that is not always the case...
Note:
To "see" these values, I used the same method as described in my post of 10-Feb-2021 19:05 (a div with ${variable} items inside the <ja:fileiterator> loop in the index.htt file).
For a more extensive overview of the resulting variable-values see the attached pdf-file.
Note2:
I still like jAlbum