3 unstable releases
0.2.0 | Nov 3, 2024 |
---|---|
0.1.1 | Oct 15, 2024 |
0.1.0 | Oct 15, 2024 |
#116 in Images
113 downloads per month
20KB
103 lines
Typora image to base64
Automatically convert images in the HTML output from Typora to base64.
Support Sources
- Local image (absolute/relative path)
- Online image
Supported Image Types
- JPEG
- PNG
- GIF
- BMP
- TIFF
- ICO
- WebP
- SVG
Installation
Install from crates.io
cargo install typora-img-to-base64
or
Install from Source
git clone https://github.com/hayd1n/typora-img-to-base64
cd typora-img-to-base64
cargo install --path .
Usage
typora-img-to-base64 <currentPath> <outputPath>
Using in Typora
Set the following custom command in Typora's export setting
typora-img-to-base64 "${currentPath}" "${outputPath}"
Dependencies
~9–20MB
~296K SLoC