Closed LudovicRousseau closed 9 months ago
Header image is only available if there are pictures in the album (i.e. if only sub albums => no pictures). Then the selection is done randomly on the landscape ones.
There are some ideas to make that header picture static similar to the cover one.
But I have pictures in the album. You can see them in the screen capture.
But I have pictures in the album. You can see them in the screen capture.
Is there any of them in Landscape? they might all be portrait.
I don't know how Lychee identify a landscape image. But they are not all in portrait mode.
Would you be able to check the database for values in the size_variants
table. There should be a ratio
column which in theory was computed from:
https://github.com/LycheeOrg/Lychee/blob/master/database/migrations/2023_07_07_143908_add_ratio_size_variants.php
For the 1st picture I have:
so medium does not exists!
return SizeVariant::query()
->where('type', '=', SizeVariantType::MEDIUM)
->whereBelongsTo($this->album->photos)
->where('ratio', '>', 1)
->inRandomOrder()
->first();
I don't think medium will be generated either given how small the original is (medium is by default 1920x1080).
Ah, good point. I had a look at different albums and for the albums with the problem the pictures do NOT have the medium size in the size_variants table.
Maybe the "small2x" or "small" sizes could be used as a fallback?
small2x could be, but small is really too... small.
Detailed description of the problem
With some of my albums I do not have a random header picture in the album view. The header is just black.
For some albums I have a header picture. The picture is random and changes if I reload the page. But for some albums I get no header. I have not found what is special for some of my albums.
I have no error or warnings in my Lychee logs.
I compared 2 HTML pages: 1 with a working header and 1 with the problem. In the page with the problem the HTML code contains at line 955:
On the working page instead I have:
Steps to reproduce the issue
Screenshots
Output of the diagnostics
Browser and system