没有合适的资源?快使用搜索试试~ 我知道了~
image-lint:查找破碎和压缩不良的图像
共87个文件
js:44个
png:12个
jpg:5个
需积分: 5 0 下载量 94 浏览量
2021-05-06
12:29:56
上传
评论
收藏 1.4MB ZIP 举报
温馨提示
图像棉绒 查找破碎和压缩不良的图像。 安装 $ npm install -g image-lint 用法 您可以指定要运行检查的文件路径和URL的列表。 它将尝试查找目录中或指定页面上使用的所有图像。 $ image-lint ./images/ http://example.com ./logos/logo1.png 每像素最大字节数-b ,-- --bytes_per_pixel 默认情况下, image-lint将对任何每像素超过3字节(bpp)的图像发出警告。 您可以使用-b或--bytes_per_pixel标志来调整此限制。 选择3bpp的值作为乐观默认值。 压缩后的图像要少得多,通常只有0.4bpp。 建议将此值设置为可以合理忍受的最低值。 $ image-lint -b 1 ./images/ 补救措施:可以通过使用压缩优化器解决此问题,或者使用合理的设置重新保存
资源推荐
资源详情
资源评论
收起资源包目录
image-lint-master.zip (87个子文件)
image-lint-master
.gitignore 1KB
package.json 148B
package-lock.json 122KB
image-lint-web
package.json 933B
bin
image-lint-server.js 2KB
__tests__
image-lint-web.test.js 114B
README.md 133B
web
css
site.css 2KB
index.html 7KB
image-lint
.jshintrc 310B
.flowconfig 39B
package.json 814B
package-lock.json 104KB
bin
image-lint.js 2KB
flow-typed
npm
koa-static_vx.x.x.js 848B
puppeteer_vx.x.x.js 31KB
flow-bin_v0.x.x.js 189B
koa-router_vx.x.x.js 1KB
chalk_v4.x.x.js 2KB
koa_v2.0.x.js 11KB
async-busboy_vx.x.x.js 1KB
crc_vx.x.x.js 10KB
got_vx.x.x.js 6KB
minimist_v1.x.x.js 723B
tmp_vx.x.x.js 798B
lib
finder
web-puppeteer.js 2KB
multi.js 2KB
buffer.js 854B
vcs.js 907B
file.js 1KB
git.js 413B
loader.js 317B
hasher.js 1KB
image-info.js 6KB
linter.js 4KB
api.js 353B
pixel-format.js 1KB
image
jpg-info.js 3KB
png-info.js 3KB
riff-info.js 613B
psd-info.js 432B
ico-info.js 758B
xml-info.js 493B
webp-info.js 463B
html-info.js 474B
bmp-info.js 451B
gif-info.js 5KB
svg-info.js 422B
tiff-info.js 454B
finder.js 972B
logger.js 1KB
args-helper.js 2KB
loader
http.js 322B
fs.js 428B
work-handler.js 2KB
.npmignore 18B
test
images
test.g.jpg 47KB
test.animated.gif 40KB
corrupt
test-very-short.txt.png 1B
test-empty.txt.png 0B
test-short.txt.png 4B
test.tif 795KB
copyright
image-info.txt 244B
jpeg-plays-as-mp3.jpg 96KB
test.bmp 768KB
test.png 788KB
truncated
test.png 28KB
test.jpg 36KB
test.gif 20KB
test.psd 225KB
test.jpg 71KB
download.svg 321B
test.cmyk.jpg 641KB
test.gif 21KB
2_webp_ll.webp 29KB
test.duplicate.png 788KB
misnamed
test.tif.png 795KB
test.html.png 96B
2_webp_ll.webp.png 29KB
test.txt.png 12B
test.psd.png 225KB
2_webp_a.webp 17KB
test.g.png 37KB
image-lint-server.psd 798KB
LICENSE 1KB
CHANGELOG.md 711B
README.md 5KB
共 87 条
- 1
资源评论
参丸
- 粉丝: 14
- 资源: 4658
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功