#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

#116 in Images

Download history 251/week @ 2024-10-14 7/week @ 2024-10-21 61/week @ 2024-10-28 48/week @ 2024-11-04 4/week @ 2024-11-18

113 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–20MB
~296K SLoC