plugin-icon

Generate WpGraphql Image DataUrl

作者:dipankarmaikap·
This plugin Generates DataUrl of MediaItem in WPGraphQL.
版本
1.0.2
活跃安装
50
最后更新
Feb 1, 2022
Generate WpGraphql Image DataUrl

This plugin Generates DataUrl of MediaItem in WPGraphQL.

This is an extension to the awsome WPGraphQL plugin (https://github.com/wp-graphql/wp-graphql) that Generate DataUrl of MediaItems.

If you are working with Headless WordPress and NextJS you can notice that NextJS don’t offer BlurUp image like GatsbyJS by default. You have to pass a base64 dataUrl in to make it work. Or you will see a blank space until the image loads. This plugin adds a dataUrl on each media item so you can use it as a placeholder until the image fully loads and NextJS will also create the fade/BlurUp Effect like in GatsbyJS.

Returning DataUrl for:

  • MediaItem
免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 5.9.12
这个插件是可用的下载,适用于您的站点。