-
Notifications
You must be signed in to change notification settings - Fork 635
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
[5.x]: Conversion of image to AVIF failing #15697
Comments
Please search through You should be able to find an exception logged that also includes the previous exception. When you find it, please post the full log details. |
Hi @brandonkelly - that's already included above, where I say "In the log file, we get:". Unless you need more than that? Thanks |
Sorry, I missed that the previous exception was included in that. Here’s the underlying error, pulled from that:
That’s coming straight from PHP. I’m not sure why there’s a discrepancy between that and what |
I've tried both Thanks |
If you Curios if you swap to Imagick, do you get different behavior? |
As this is managed hosting, we can't easily install Imagick I'm afraid. We've actually decided to move the site in question over to different (VPS) hosting and will be gradully migrating the rest of our sites. So this is no longer a pressing issue for us. If you've had no other reports of this issue, I'd be happy for the issue to be closed. Thanks |
What happened?
Description
We are using image transforms to convert JPEGs to AVIFs. This works fine locally in ddev, but fails on our (managed VPS) live server.
In the browser, we get the folliwing error:
In the log file, we get:
phpinfo confirms that AVIF support is enabled and we have installed libheif-dev along with libjpeg-dev, libpng-dev and libwebp-dev on the server.
We put the following test code in a PHP file in the web root and it works perfectly (the AVIF image is created).
The fact that AVIF generation works on the server outside of Craft suggests that this is a Craft-specific issue?
PHP 8.2.5
Image driver: GD 8.2.5
Craft CMS version
5.3.6
PHP version
8.2.5
Operating system and version
Ubuntu 18.04.6 LTS
Database type and version
MariaDB
Image driver and version
GD 8.2.5
Installed plugins and versions
Amazon S3 2.2.1
Blitz 5.7.1
Bugsnag 5.0.0
CKEditor 4.2.0
Dashboard Begone 3.0.0
Element API 4.1.0
Navigation 3.0.3
oEmbed 3.0.9
SEOmatic 5.1.2
Sprig 3.5.0
Wordsmith 5.0.0
The text was updated successfully, but these errors were encountered: