Incorrect ratio for thumb images in the album view #2213
-
Detailed description of the problemI have 2 Lychee web sites with the same pictures (1 test server & 1 prod server). Steps to reproduce the issueI don't know how to reproduce the issue. On the server without the problem I have: On the server WITH the problem I see: The problem may be related to #2196 The full size images are correct (portrait or landscape). Only the thumb images in the album view are square only. Is it possible to force a re-generation of the thumb/small/etc images? Output of the diagnosticsSame as for #2196 Browser and systemSame as for #2196 |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
https://github.com/LycheeOrg/Lychee/blob/master/app/Console/Commands/GenerateThumbs.php Probably: php artisan lychee:generate_thumbs {type : thumb name} {amount=100 : amount of photos to process} {timeout=600 : timeout time requirement} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This would produce some slowdown when loading a page. I am not so much in favour of that. What could be done however is add info in the diagnostics that there are X sizevariants that could be generated given the current info in the DB. |
Beta Was this translation helpful? Give feedback.
-
Diagnostics already has a "Optimize" button for the database. |
Beta Was this translation helpful? Give feedback.
-
Then I would rather add specific page for those kind of actions and get that out of diagnostics. :) |
Beta Was this translation helpful? Give feedback.
-
Exactly. |
Beta Was this translation helpful? Give feedback.
Before I regenerate the different size I had a look at the
size_variants
table in the database.I have:
The sizes "small" and "small2" are missing.
I tried the
generate_thumbs
command but it fails:I then used:
and the album view is now correct.
Maybe the missing small images could be gene…