#image #convert-images #base64 #html #automatic #local #typora

app typora-img-to-base64

Typora image to base64

3 unstable releases

0.2.0 Nov 3, 2024
0.1.1 Oct 15, 2024
0.1.0 Oct 15, 2024

#120 in Images

Download history 252/week @ 2024-10-15 6/week @ 2024-10-22 84/week @ 2024-10-29 25/week @ 2024-11-05 4/week @ 2024-11-19 7/week @ 2024-12-10

133 downloads per month

MIT license

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

Dependencies

~9–21MB
~298K SLoC