#image #base64 #typora #convert-images #local #path

app typora-img-to-base64

Typora image to base64

2 releases

new 0.1.1 Oct 15, 2024
0.1.0 Oct 15, 2024

#116 in Images

Download history 98/week @ 2024-10-10

98 downloads per month

MIT license

20KB
97 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

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}"
Screenshot 2024-10-16 at 2 56 30 AM

Dependencies

~9–19MB
~294K SLoC