Moving from https://forum.evo.im/d/14-what-are-your-default-extras/43
mplavala Try reinstalling the plugin. If even standard images are not converted, then the plugin is either disabled, or maybe someone deleted the assets/plugins/webpconverter/ folder with the PHP code.
Thanks for the advice. Have reinstalled webpconverter a number of times in between testing = no change. Cache cleared copious times = no change.
In Elements I deleted the snippet and plugin, on the server I deleted the webp... plugin folder. Then reinstalled and cleared cache = no change.
On the server:
assets/plugins/webpconverter/
exists with one 4.3kb file inside called plugin.webpconverter.php
- confirming there is no webpconverter folder in
assets/snippets/
- but there is a snippet callled webpBackground
in Elements > Snippets
Does that setup look right?
In my slideshow example, the row template (with If calls pulled out in case that was related = that had no change) looks like so:
<div class="slider" data-title="[+title+]" data-cycle-desc="[+bannertxt+]">
<a href="[~[+id+]~]"><img src="[+image+]"
srcset="
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=1800,q=90`]]`!] 1800w,
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=1600,q=90`]]`!] 1600w,
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=1400,q=90`]]`!] 1400w,
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=1200,q=90`]]`!] 1200w,
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=1000,q=90`]]`!] 1000w,
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=800,q=90`]]`!] 800w,
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=650,q=90`]]`!] 650w,
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=480,q=90`]]`!] 480w,
[!webpBackground? &src=`[[phpthumb? &input=`[+image+]` &options=`w=300,q=90`]]`!] 300w"
sizes="100vw"
alt="slideshow image" /></a>
</div>
The row in the front end source looks like so with just jpgs:
<div class="slider" data-title="Page 2" data-cycle-desc="">
<a href="page-2"><img src="assets/images/temp/photo-1200-2.jpg" srcset="
assets/cache/images/temp/photo-1200-2-1800x-594.jpg 1800w,
assets/cache/images/temp/photo-1200-2-1600x-d85.jpg 1600w,
assets/cache/images/temp/photo-1200-2-1400x-88a.jpg 1400w,
assets/cache/images/temp/photo-1200-2-1200x-983.jpg 1200w,
assets/cache/images/temp/photo-1200-2-1000x-996.jpg 1000w,
assets/cache/images/temp/photo-1200-2-800x-f0b.jpg 800w,
assets/cache/images/temp/photo-1200-2-650x-cb2.jpg 650w,
assets/cache/images/temp/photo-1200-2-480x-518.jpg 480w,
assets/cache/images/temp/photo-1200-2-300x-96f.jpg 300w" sizes="100vw" alt="slideshow image"></a>
</div>
Any other ideas? Would love to get this working.
Confirming that webp still works directly in a chunk (eg using [*banner*]
).
mplavala Finally, if none of the above, then check whether the PHP functions mime_content_type and imagewebp are available at your hosting. The plugin needs those functions to work properly. But if it worked before, then they likely are available.
Hmmm... Not sure where to change those settings in cPanel. I can't see them in Select PHP Version
(php was 7.2 but now 7.4, no change). If webp still works directly in a chunk using [*banner*]
, wouldn't these settings be the same for DocLister calls using [+image+]
? I am stumped
mplavala Next month, I will add a thing so that if the functions are missing, the plugin will create an error message in the log.
Nice!