-
Hello guys!
While queue performing is on, my client-side on the 4th step receives the image without rotation of course. In other cases queue performing of the images is well, but in this case, I would like to perform the image synchronously. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After a little research, I've found a decision. // Manipulaitons with $media ...
// Dispatch job immediately
$profileCollection = ConversionCollection::createForMedia($media);
dispatch_now(app(
config('media-library.jobs.perform_conversions'),
[
'media' => $media,
'conversions' => $profileCollection->getQueuedConversions($media->collection_name)
]
)); But another job (in the queue) after saving the media will be dispatched too of course. |
Beta Was this translation helpful? Give feedback.
After a little research, I've found a decision.
But another job (in the queue) after saving the media will be dispatched too of course.