Skip to content
geekMusPublic

About

Markdown image manager: upload local images to your PicGo host, check or download the remote ones.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MarkPic

The image pipeline for Markdown documents. Drop a document or a folder, pick one of three jobs, and MarkPic rewrites the image links — or tells you which ones are broken.

release platform license

English | 简体中文

The upload page: three documents in the queue, one expanded to show every rewritten link

Three jobs

Job What it touches Rewrites the document Needs PicGo running
Upload local images → your image host yes yes
Check remote image URLs no no
Download remote images → images/ yes no
  • Upload finds the local images a document references, sends them through your PicGo server, and rewrites each link to the hosted URL. Remote images already in the article are left alone.
  • Check walks the remote URLs and reports the ones that are dead, are not images, or come back truncated. Read-only.
  • Download pulls those remote images into a local images/ folder and rewrites the links to relative paths.

A document that needs none of this still stops by for a visit — it appears in the queue with “no images”, so the number of cards always matches the number of documents in the folder.

What it looks like

Check: which links are dead

Check page: 4 addresses, 2 open, 2 dead

Download: remote images, brought home

Download page: 2 remote images fetched

Folders: find the Markdown first, import when ready

Dropping a folder or a whole drive gives you one scan card. It only looks for Markdown files — it never opens them — so it is fast and completely predictable. The card counts what it has found, shows the directory being walked and how long it has been running, and can be stopped at any time. When it finishes, expand the card to see the Markdown files it found.

Click Import on that card: it is replaced by one card per document, and the image counts are filled in afterwards. That second pass is throttled to what the machine can handle — never ten thousand scans at once.

A folder has been scanned: 3 documents found, ready to import

Settings: everything in one page, saved when you are done

Settings page

Light and dark

Every screenshot on this page uses the light theme. MarkPic follows the system theme by default; Settings → Theme pins it to light or dark. The native title bar, the tray menu and the WebView background switch together, so resizing or repainting never flashes white.

Dark theme

Features

  • Drop files, several files, or a folder. A single file becomes a file card right away. A folder or drive becomes a scan card that only finds Markdown (.md, .markdown, .mdown, .mkd, .mdwn); click Import to turn what it found into file cards. A document with no images still gets a card — even an empty one — so the queue always matches the folder. .txt, code files, images and archives are ignored.
  • Fresh every launch. Closing and reopening the app always starts on the first page with an empty queue. Switching between Upload, Check and Download inside a running session keeps each page's queue and results.
  • Byte-faithful rewriting. UTF-8 (with or without BOM), UTF-16 with BOM and the machine's ANSI code page all survive the round trip; apart from the rewritten addresses the file comes back identical.
  • Never uploads the same image twice. Identical content is uploaded once per run, and an unchanged image that was uploaded or downloaded before is reused from cache.
  • Three output modes. Sidecar copy (note.converted.md), in place (with a .bak), or into a directory you choose.
  • Desktop manners. Tray icon, close-to-tray, light/dark theme that follows the system, Chinese and English UI, and self-update from GitHub releases.
  • No local server, no runtime, no credentials. The UI is embedded in the executable; uploads go through PicGo's local HTTP interface, so MarkPic never sees your image-host keys.

Install

Download MarkPic-v<version>-windows-amd64.exe from Releases. There is no installer: put it anywhere and run it. An installed copy updates itself, and settings plus caches live in the data/ folder next to the executable.

Windows 10 or newer. macOS and Linux are planned but not verified yet.

Quick start

  1. Install and start PicGo, then enable its server under Settings → Server (default http://127.0.0.1:36677).
  2. Drop your documents, or a folder, onto the MarkPic window.
  3. Choose Upload, Check or Download on the left, then start.

Documentation

  • Usage — supported syntax, output modes, settings, data directory
  • Build & development — toolchain, scripts, repository layout
  • Bridge API — the internal WebView2 bridge between the UI and Go

Build from source

Requires Go 1.24+. Changing the UI also needs Node 20.19+ and pnpm; the build scripts run pnpm --dir web install for you. One command builds the frontend and produces bin/MarkPic.exe:

npm run build

See docs/build.md for the scripts, the release workflow and the repository layout.

License

MIT — see LICENSE. Bundled third-party code keeps its own license: go-webview2 (MIT) and golang.org/x/sys (BSD-3-Clause).

About

Markdown image manager: upload local images to your PicGo host, check or download the remote ones.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages