No description
Find a file
2025-04-30 19:54:37 +08:00
.github Update GitHub Actions workflow to use build directory 2025-04-30 19:54:37 +08:00
screenshots Initial commit: Convert Base64 to PNG plugin 2025-04-11 20:59:35 +08:00
.gitignore Merge remote changes and update .gitignore to exclude build and images directories 2025-04-30 17:12:00 +08:00
esbuild.config.mjs Embed SVG content directly in code instead of using external image files 2025-04-30 17:10:09 +08:00
LICENSE Initial commit: Convert Base64 to PNG plugin 2025-04-11 20:59:35 +08:00
main.ts Embed SVG content directly in code instead of using external image files 2025-04-30 17:10:09 +08:00
manifest.json Embed SVG content directly in code instead of using external image files 2025-04-30 17:10:09 +08:00
package-lock.json Embed SVG content directly in code instead of using external image files 2025-04-30 17:10:09 +08:00
package.json Embed SVG content directly in code instead of using external image files 2025-04-30 17:10:09 +08:00
README.md Update README 2025-04-11 21:27:16 +08:00
styles.css Move inline styles to CSS 2025-04-12 12:50:02 +08:00
tsconfig.json Initial commit: Convert Base64 to PNG plugin 2025-04-11 20:59:35 +08:00
version-bump.mjs Initial commit: Convert Base64 to PNG plugin 2025-04-11 20:59:35 +08:00
versions.json Initial commit: Convert Base64 to PNG plugin 2025-04-11 20:59:35 +08:00

Convert Base64 to PNG

This plugin for Obsidian converts base64-encoded images in your notes to local PNG files. Reduce the size of your markdown files and make them more portable!

Demo

Demo

Features

  • Base64 Detection: Automatically detects base64-encoded images in your notes
  • Local Conversion: Converts base64 images to local PNG files
  • Batch Processing: Process individual files or all files in your vault
  • Customizable Storage: Configure where and how PNG files are stored
  • Automatic Conversion: Option to automatically convert base64 images when pasting

How It Works

When you run the plugin:

  1. It scans your notes for base64-encoded images
  2. Decodes the base64 data to binary
  3. Saves the binary data as PNG files in your configured folder
  4. Updates the links in your notes to point to the local PNG files

This makes your notes smaller, more portable, and easier to work with.

Settings

General Settings

  • Auto Convert: Automatically convert base64 images when pasting
  • Output Folder: Folder where PNG files will be saved (relative to the note)
  • Filename Format: Format for generated filenames with placeholders for date, index, and image type

Commands

  • Convert Base64 images to PNG for current file: Process the currently active file
  • Convert Base64 images to PNG for all files: Process all markdown files in the vault

Installation

From Obsidian Community Plugins

  1. Open Obsidian Settings
  2. Go to Community Plugins
  3. Search for "Convert Base64 to PNG"
  4. Click Install, then Enable

Use Cases

  • Reduce File Size: Base64-encoded images can make your markdown files very large
  • Improve Portability: Local PNG files are more portable and can be used outside of Obsidian
  • Better Organization: Keep your images in a dedicated folder instead of embedded in your notes
  • Easier Editing: Smaller markdown files are easier to edit and work with

If you find this plugin useful, consider supporting me:

Buy Me A Coffee

or

Support me on Ko-fi