How to register a new conversion without adding it to the queue? #2995
Unanswered
animesubindo181225
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Conversion for mp4 files to webm for media triggered from
\Spatie\MediaLibrary\MediaCollections\Events\MediaHasBeenAdded
was successful with and thegenerated_conversions
field in the media table became:When I try to get the URL for the file converted with
$mediaItems[0]->getUrl('webm');
I get the error:I tried to register the media conversion as below, but by adding that line, every time I add media, a new job
Spatie\\MediaLibrary\\Conversions\\Jobs\\PerformConversionsJob
is added to the queue, and when the job is processed the image file with the extension.webm
created/added to the conversions folder.How to add media conversion without action (so that no jobs are added to the queue)?
I have also tried the following function but the job is still added to the queue
Beta Was this translation helpful? Give feedback.
All reactions