gulp-lqip-base64
Parses HTML files to find
<img>
tags and adds an attribute to them which contains their Base64 representation.
Demo
https://exuanbo.github.io/gulp-lqip-base64/
Install
npm install --save-dev gulp-lqip-base64
Usage
const task src dest = const lqipBase64 =
or you can
Supported image types
Currently ['jpeg', 'jpg', 'png', 'bmp', 'tiff', 'gif']
are supported.
Options
Type: Object
srcAttr
- Type:
String
- Default:
src
Attribute which contain the image path.
attribute
- Type:
String
- Default:
data-src
Attribute which will contain the Base64 representation of the image.
Acknowledgement
Thanks gulp-image-lqip for the inspiration.