Open Vetpetmon opened 1 year ago
I have currently commented out all lines in LocalSettings.php in order to make the site usable again, which means this extension is responsible.
WebP does NOT support GD as a fallback, which appears to be the issue. I'll see about getting WebP support into Imagick ASAP. If that fixes issues, I'll close this issue with instructions on how to resolve the issue.
Thanks for the report!
It seems like the installed imagick version does not support webp
(as it is not listed in the supported formats).
You need to have libwebp6
installed, and an imagick version supporting WebP (as a reference my local version is on 3.7.0).
I'll look into it adding support for GD.
Yeah, web server hosts won't let me update Imagick, so having GD support is nice. I'll test it on my server, and see if GD + WebP loads pages faster than just Imagick.
Results returned: Images silently fail to convert to WebP. Only images that work are SVG files.
WebP with GD causes CPU load times of 3-4 seconds, while Imagick has CPU times of a tenth a second. Further testing with bugfixes needed.
Are you using thumb.php
?
I'll investigating the long gd times in the following days.
I am not using thumb.php
as far as I know, where can I find the file? I sadly do not have shell access, so options are limited.
I can easily work my way through the Linux command line, but provider said "no" to access, which is why I am looking forwards to fixing GD support now.
thumb.php
refers to MediaWiki's Thumb Handler.
Enabling the handler stops creating all thumbnails of a page on page display (which slows down displaying the site to the user), but rather generates them in the background, which should let the page load faster. (plus it allows to utilize the Job Queue is setup)
As for gd
I have not found the time yet, but this is still on my todo
Adding ImageMagick lines to LocalSettings.php introduces no errors, outside of initial compression load times.
However, adding WebP Extension through the installation methods in the README.md results in the server having an internal error.
My server is running PHP 7.4 with Mediawiki 1.39.0. Here is the stacktrace:
And here are my settings:
Is there any way to fix this?
Edit: phpinfo returns this for GD: This is returned for Imagick: