New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve diagnostics with count of thumbs that can be regenerated #2200
Conversation
Application of the patch fails. I do not have a
I then run:
I then run:
etc... I am now at Maybe the command could generate ALL the medium images? Since I started the
Solution: I discover that the files in |
Actually there is no |
@LudovicRousseau I improved the feedback for the thumb generation, note that you will still be blocked by the timeout (which is probably why it was generating ~50 images instead of generating the default 100 of them). |
Ah OK. |
You don't need to, all new pictures will be place in |
->when($svHelpers->getMaxWidth(SizeVariantType::SMALL) !== 0, fn ($q1) => $q1->where('width', '>', $svHelpers->getMaxWidth(SizeVariantType::SMALL))) | ||
->when($svHelpers->getMaxHeight(SizeVariantType::SMALL) !== 0, fn ($q2) => $q2->orWhere('height', '>', $svHelpers->getMaxHeight(SizeVariantType::SMALL))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering if that orWhere
in the second line will behave as expected when where
is missing (i.e., if width in the first line is 0
)? It won't generate a syntactically invalid SQL query or something?
(I know -- I should test; I'm just not there yet)
Same question with respect to the other three size variants below...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would believe that Laravel is smart enough to resolve that. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
untested
I tested it locally and with @LudovicRousseau :) |
@LudovicRousseau
Would you be able to test it on your install ?
https://patch-diff.githubusercontent.com/raw/LycheeOrg/Lychee/pull/2200.patch < here is the patch.
Locally I get