Package Exports
- whistle.qpic-autosave
- whistle.qpic-autosave/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (whistle.qpic-autosave) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
whistle.qpic-autosave
Feature
微信图文中的图片 自动保存指定的本地目录
通过 库 kevva/download: Download and extract files (github.com) 实现了下载图片的功能
- response中带的数据自动转换成图片,可以参考上面的库来实现
修改
mmbiz.qpic.cn referer://https://mp.weixin.qq.com/,这个可以非微信域名下加载微信的图片了,方便调试
安装
该应用是whistle插件,需要先安装whistle:https://github.com/avwo/whistle
安装插件:
npm i -g whistle.qpic-autosave推荐使用淘宝镜像:
npm i -g whistle.qpic-autosave --registry=https://registry.npm.taobao.org安装后通过whistle的管理界面打开配置界面:

整个插件 copy了官方的 whistle-plugins/whistle.autosave: 自动保存指定抓包数据到本地目录 (github.com) 修改了针对微信图片SVG场景下的图片自动下载保存和和微信图片的本地开发环境预览效果