typora-img-to-base64

Crates.iotypora-img-to-base64
lib.rstypora-img-to-base64
version0.2.0
sourcesrc
created_at2024-10-15 19:03:02.829956
updated_at2024-11-03 11:33:47.539352
descriptionTypora image to base64
homepage
repositoryhttps://github.com/hayd1n/typora-img-to-base64
max_upload_size
id1409886
size69,611
Hayden Chang (hayd1n)

documentation

README

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
Commit count: 8

cargo fmt