We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在阅读到这篇文章后由了验证的方法
[PNG文件格式详解](https://blog.mythsman.com/post/5d2d62b4a2005d74040ef7eb/)
首先使用工具https://www.nayuki.io/page/png-file-chunk-inspector 解码分析png的数据
可以看到文本信息数据块tEXt(textual data)内有xml数据,
我们复制出来Text string的值,经过decodeURIComponent处理后的到
这段应该就是drawio保存的图表信息
如果需要使用 nodejs 对指定区进行修改和提取,则可以利用 [png-chunks-encode](https://www.npmjs.com/package/png-chunks-encode) 和 [png-chunks-extract](https://www.npmjs.com/package/png-chunks-encode)
https://codesandbox.io/s/magicpng-y27un0
xml在线format:https://jsonformatter.org/xml-editor
pngchunk分析:https://www.nayuki.io/page/png-file-chunk-inspector
pngcheck:
[pngcheck Home Page](http://www.libpng.org/pub/png/apps/pngcheck.html)
png文件格式详解:https://blog.mythsman.com/post/5d2d62b4a2005d74040ef7eb/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
猜测思路:
在阅读到这篇文章后由了验证的方法
[PNG文件格式详解](https://blog.mythsman.com/post/5d2d62b4a2005d74040ef7eb/)
首先使用工具https://www.nayuki.io/page/png-file-chunk-inspector 解码分析png的数据
可以看到文本信息数据块tEXt(textual data)内有xml数据,
我们复制出来Text string的值,经过decodeURIComponent处理后的到
这段应该就是drawio保存的图表信息
如何实现读取和写入
DEMO
https://codesandbox.io/s/magicpng-y27un0
附录
xml在线format:https://jsonformatter.org/xml-editor
pngchunk分析:https://www.nayuki.io/page/png-file-chunk-inspector
pngcheck:
[pngcheck Home Page](http://www.libpng.org/pub/png/apps/pngcheck.html)
png文件格式详解:https://blog.mythsman.com/post/5d2d62b4a2005d74040ef7eb/
The text was updated successfully, but these errors were encountered: