BACK TO DIRECTORY

Generate WpGraphql Image DataUrl

by dipankarmaikap

0.0
(0 ratings)

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

Plugin Details

Active Installs
40
Total Downloads
2,245
Version
1.0.2
Requires WP
5.0
Requires PHP
7.1
Tested Up To
5.9.16
Added
2022-02-01
Last Updated
2022-02-01 6:39pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0