-
-
Notifications
You must be signed in to change notification settings - Fork 351
While processing in CLI, do not crash on large photos #3533
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
Conversation
Codecov Report❌ Patch coverage is 🚀 New features to boost your workflow:
|
6c53d58
to
87f760f
Compare
ExtractColoursJob::dispatchSync($photo); | ||
try { | ||
$this->line(sprintf('Extracting Color Palette for %s [%s].', $photo->title, $photo->id)); | ||
ExtractColoursJob::dispatchSync($photo); |
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.
Do we want to check Configs::getValueAsBool('use_job_queues')
here to dispatch jobs to queues?
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 am considering dropping the use_job_queues
config actually. :)
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.
and have it determined directly by the .env
config
Avoid the following (which could be resolved by checking if the image size is small enough for Imagick.
See more here:
https://stackoverflow.com/questions/77578848/imagemagick-throws-width-or-height-exceeds-when-converting-svg-to-png-with-ver
Let's just not fail for now. We later can consider a fix or a warning in the settings.