webp_image |
Plugin |
This Smarty plugin for CMS Made Simple 2.x converts an image to a webp format. Supports cache. Speed up your website with a modern image format.
Usage:
<img src="{webp_image src="uploads/simplex/images/cmsmadesimple-logo.png" quality="85"}" width="227" height="59"/>
You can use a relative and absolute url (path) to the image in the src parameter. For Gallery:
<a class="group" href="{webp_image src=$image->file}" title="{$image->comment}" rel="prettyPhoto[{$galleryid}]"><img src="{webp_image src=$image->thumb}" alt="{$image->titlename}" /></a> |