tiddly-gittly / Tid2PNG

条目截图,捕获当前条目为PNG文件并保存到本地
https://tiddly-gittly.github.io/Tid2PNG/
MIT License
3 stars 1 forks source link

Tid2PNG

条目截图 (Screenshot Tiddler): Captures the currentTiddler as a PNG image

最佳使用方法是将 截图按钮 放在“查看工具栏”,即默认方式,这样拍照的时候就不会因为“乱动”而照片模糊。(或者实现几种辅助“拍照”工具,比如快捷键、悬浮菜单等等)

Read Me

Usage: Click the icon on the Tiddler toolbar to Captures the currentTiddler as a PNG image.

Credits

使用pnpm包管理器

Contributors

实现原理:通过捕获当前条目的DOM状态,对它进行“拍照”处理获得图像文件(照片),然后保存下来。

注意:水平分割线height不应小于1px或更高,否则会导致异常(在CanvasRenderingContext2D上执行'drawImage'失败:image参数是一个宽度或高度为0的canvas元素;)。