yireo / magento2-webp2-graph-ql
Add GraphQL support to Yireo Webp2 for Magento 2
Installs: 323
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Type:magento2-module
Requires
- magento/framework: ^102.0|^103.0
- yireo/magento2-webp2: ^0.14
README
Magento 2 module for extending Yireo Webp2 with GraphQL support
Installation
composer require yireo/magento2-webp2-graph-ql bin/magento module:enable Yireo_Webp2GraphQl
Usage in GraphQL
For every regular image URL, append a _webp
variant to your query:
query { products(search:"a", pageSize: 1){ items { sku name media_gallery { url url_webp } } } }