• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

247even/gulp-img64: Convert and replace image-files within your DOM/HTML to base ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

247even/gulp-img64

开源软件地址(OpenSource Url):

https://github.com/247even/gulp-img64

开源编程语言(OpenSource Language):

JavaScript 100.0%

开源软件介绍(OpenSource Introduction):

gulp-img64 Build Status

Convert and replace image-files within your DOM/HTML to base64-encoded data.

Example

gulpfile.js
var gulp = require('gulp');
var img64 = require('gulp-img64');

gulp.task('default', function () {
	gulp.src('index.html')
		.pipe(img64())
		.pipe(gulp.dest('path'));
});
index.html // Before...
<html>
	<head>
	</head>
	<body>
		<img src="sample.png" />
...
path/index.html // ...after:
<html>
	<head>
	</head>
	<body>
		<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAACksUlEQVR42ux9B5glV3F195ud2dkkaSXxE22SDTYigwwWSUQHsAgCEyTAgBAgE0wGA79JwiKDAIlkhEgiRxFFNEZkkxwA22AMTvwobZiZnfDef6r7Vr/Tp+u+3emZ1Upi7369/ea97hvr1q06VbduWRxMl+c0U5blDUaj0VVx/z+43xDfTeHahuvauEa4ro7rcHnPvh/inVH1x2iEj+Ug3e3vIt3n8PO/2Zf4/At8vtCex5//gL8vwMef4fO/4PPuA90RB1O/VB7oChxMe0+YZNfEzSb6DXC/Lv6+Hj7/Bj4fgmuYrpXBYDC0lN4Z4plhPXerO2c5SpO8YQB4t8CrFQOwy7JJE3+AR/DzwDKo/vbv7MIjU/h7Hvd/w/3n+O7HuP4Zf/8T/v6XA913B9PkdJABXMYSJs51MHGOxv2WuB+F+/Xx9WxRT/JlfLeCu18jm/Q2T1dWVmwyj1IetpSPbBLjd7vb30Wa5NUKP5iaKkb+eTBoyk/vuBRQOj+xKz1XljXnKIcrK/adcR27GyMw6cMe2mCf7XV8/iE+/wD37+Hvr+PzDw90Hx9M43SQARz4dGtcNuFvgclxi6IW11fw91JRT/JlXNVqPjU1hXk3wufCJ3u1knvyVd6/c3Gek6/u/Lyv+vWkR6Er9e8bNmyonmWmwAzDnrXsk+RQpTq7cgCG1EgIlhXuxhQ2JHXhW37h+6/hu8UDPQi/rukgA7iUEwj+qiD4O+N+F/x5DD5vxn0Jfy/bVdSTvprwducV3BJPxnoijvBdPcl9hffP9kwS5Tv1aEkD+Fza8+ldS8pYeOL7byItNAwCjMrzLvG5NGZgKkSSCiyTaWMG6W5tPh/X3+L6JK6fHegx+nVKBxnApZBA9LcGod8VH++G67qYC0uYJ0u28mFirNhkN0madPbWpOKVup50ZTPpdZVvJnTwPU9klhIwQZvfpqYGVd76nOdhySa4v9NpqzGWlZXqc8SQEiNoMISkNkwXNTOw+38h3/Pw+XP4/LkDPXZX9HSQAey/ZGL93UHI98L9SPy9iM+20 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap