![]() Projects using WebP Convert CMS plugins using WebP Convert To set this up, follow what's described in this tutorial (not updated for 2.0 yet). The library can be used to create a WebP On Demand solution, which automatically serves WebP images instead of jpeg/pngs for browsers that supports WebP. ![]() The old introduction (for 1.3.9) is available here: docs/v1.3/serving/convert-and-serve.md WebP on demand The following introduction is a must-read (for 2.0):ĭocs/v2.0/serving/introduction-for-serving.md. all convert option can be entered here (ie "quality") Other options include 'throw', '404' and 'report' //'show-report' => true, // Generates a report instead of serving an image 'serve-image' => [ 'fail' => 'original', // If failure, serve the original image (source). WebPConvert:: serveConverted( $source, $destination, [ Require the library with Composer, like this: In addition to converting, the library also has a method for serving converted images, and we have instructions here on how to set up a solution for automatically serving webp images to browsers that supports webp.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |