Skip to content
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

Webp doesn't work #257

Closed
mediafoks opened this issue Aug 3, 2022 · 3 comments
Closed

Webp doesn't work #257

mediafoks opened this issue Aug 3, 2022 · 3 comments

Comments

@mediafoks
Copy link

Joomla 4.1.5, plugin v. 4.1.1
The "Create WebP images" plugin settings are enabled, but the webp does not generate.
Source Code:
<img src="/images/img.jpg">
Out:

<picture class="responsive-image">
<source type="image/jpeg" sizes="(max-width: 1920px) 100vw 1920px" srcset="/media/cached-resp-images/images/img_480.jpg?version=4ccfcf3e135d7861f5722ef65349ba49 480w, 
/media/cached-resp-images/images/img_320.jpg?version=4ccfcf3e135d7861f5722ef65349ba49 320w">
<img decoding="async" height="384" width="576" loading="lazy" src="/media/cached-resp-images//images/img_1920.jpg?version=4ccfcf3e135d7861f5722ef65349ba49">
</picture>
@dgrammatiko
Copy link
Member

@mediafoks could you please share the PHP Information part of your system info administrator/index.php?option=com_admin&view=sysinfo

If you're using GD should be something like:
Screenshot 2022-08-03 at 11 39 32

Similar goes for imagick...

If your installation doesn't support WebP the plugin won't magically create WebP images (same goes for Avif). Both these formats are depending on the support of the graphics libraries

@mediafoks
Copy link
Author

Thank you!
gd MP Support - enabled, but imagick ImageMagick supported formats - webp no.

@dgrammatiko
Copy link
Member

gd MP Support - enabled, but imagick ImageMagick supported formats - webp no.

The graphic library is automatically picked with priority to imagick:
https://github.com/ttc-freebies/ttc-common-library/blob/6ffce4341b96815da6a189a471a2a9158835f7e9/src/libraries/Ttc/src/Freebies/Responsive/Helper.php#L213-L217

Maybe you could ask your host provider for an update of imagick, the latest versions have also support for Avif which is a better format (mostly leaner files with less artefacts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants