Replies: 1 comment
-
I have a slightly similar issue with my staging and production servers (Ubuntu 22.04.4 LTS). My local dev env is Macbook. My conversion code was generating a My conversion code : $this->addMediaCollection('images')
->useFallbackUrl(asset('images/Aircraft.jpeg'))
->useFallbackPath(public_path('images/Aircraft.jpeg'))
->withResponsiveImages()
->registerMediaConversions(function (?Media $media = null) {
$this
->addMediaConversion('thumb')
->width(80);
$this
->addMediaConversion('pdf')
->width(200);
}); Disabling the optimizers while I figure this out has prevented the job from failing for now.. $this->addMediaCollection('images')
->useFallbackUrl(asset('images/Aircraft.jpeg'))
->useFallbackPath(public_path('images/Aircraft.jpeg'))
->withResponsiveImages()
->registerMediaConversions(function (?Media $media = null) {
$this
->addMediaConversion('thumb')
->width(80)
->nonOptimized();
$this
->addMediaConversion('pdf')
->width(200)
->nonOptimized();
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I have had this error since updating to Media-Library v11 on a production machine.
I'm going around in circles and I don't understand why I have this error.
On my dev machine under Docker, this code works perfectly! Moreover, the same code works without problems in production on another server/site.
In short, I need help.
Thank you to the first person who understands or has a lead. 😀🙏
My conversion is called by a job
The variable $savepath contains the captured file which exists in the directory and it is indeed an image of several bytes.
The conversion is declared in the Camping model
Beta Was this translation helpful? Give feedback.
All reactions