Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown Image ControlNew to Visual Studio Code? Get it now.
Markdown Image Control

Markdown Image Control

Maple367

|
130 installs
| (0) | Free
Self-hosted VS Code extension: upload pasted Markdown images with PicGo and control Markdown preview image size/filter syntax.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Image Control

A self-hosted VS Code extension that combines:

  • PicGo image upload on Markdown paste / command (Cmd+Alt+V on macOS, Ctrl+Alt+V elsewhere)
  • Markdown preview image control syntax from Markdown-Image-Control

Features

Upload pasted images with PicGo

When editing Markdown, paste an image or run Markdown Image: Upload Image from Clipboard with PicGo. The extension uploads the image through PicGo CLI and inserts:

![image](https://...)

Supported image handling:

  • Direct upload for Markdown-friendly formats such as PNG, JPG/JPEG, GIF, WEBP, BMP, and SVG
  • Automatic conversion to PNG for unsupported formats before upload, including HEIC, HEIF, and TIFF

Control Markdown preview image style

Use directives in image alt text:

![caption w:320 h:180 blur:2px brightness:1.1](https://github.com/maple367/markdown-image-picgo-control/raw/HEAD/image.png)

Supported size directives:

  • w: / width:
  • h: / height:

Supported CSS filter directives:

  • blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, opacity, saturate, sepia

Directives are removed from the rendered alt text and converted to inline styles in VS Code Markdown preview.

Settings

-- markdown-image-control.picgoPath: PicGo CLI executable path. Default: picgo -- markdown-image-control.autoUploadOnPaste: automatically upload image paste in Markdown. Default: true

Implementation notes

  • The extension uses sharp for image format conversion, so no extra image codec dependency is required for the common conversion flow.
  • If a pasted image is not directly supported by Markdown preview, it is converted to PNG and then uploaded through PicGo.

Build locally

npm install
npm run compile
npx @vscode/vsce package
code --install-extension markdown-image-control-0.2.0.vsix

Credits / upstream

This self-hosted integration is based on:

  • https://github.com/zcyisiee/vscode-picgo-paste
  • https://github.com/maple367/Markdown-Image-Control
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft