Package Control

The Sublime Text package directory, rewired.

PasteImage

Paste clipboard images into Sublime Text with inline preview (macOS only)

OctSepAugJulJunMayAprMarFebJan Dec2025 Nov 2026-W46 | installs: 3 | removals: 0 | upgrades: 0 2026-W46 | installs: 3 | removals: 0 | upgrades: 0 2026-W46 | installs: 3 | removals: 0 | upgrades: 0 024 WeeklyInstalls 024 WeeklyUpgrades 2026-W43 1.0.2 / 1.0.1 / ... 1.0.2 / 1.0.1 / 1.0.0
Installations: 3 in total
Installations minus removals
Upgrades

Links

Versions

1.0.2 (ST4000+) ·
2026-10-20 18:57 — macOS

More
  • (ST4000+) 1.0.1 ·
    2026-10-19 22:01 — macOS
  • 1.0.0 ·
    2026-10-19 21:57 — macOS

PasteImage

macOS only. Sublime Text 4 plugin. Paste an image from the clipboard into any file, and see it inline.

Works on macOS only. It uses pngpaste to read the clipboard and sips to read image sizes. On Linux or Windows the commands are disabled and show a message. Pull requests that add other platforms are welcome.

Install

  1. Install pngpaste:

    brew install pngpaste
    
  2. Install the plugin:

    • Package Control: Package Control: Install Package → PasteImage

    • Manual: clone this repo into your Packages folder:

      cd "$HOME/Library/Application Support/Sublime Text/Packages"
      git clone https://github.com/shivamsupr/PasteImage.git
      

Where images go

By default, images are saved next to the file in an assets/ folder, and the link is relative. Unsaved buffers use ~/Downloads/sublime-paste with an absolute link.

To save every image in one place instead, set save_dir:

// Preferences > Package Settings > PasteImage > Settings
{
    "save_dir": "~/Pictures/pasted"
}

Settings

Setting Default What it does
save_dir "" Fixed folder for all images. Empty means next to the file.
assets_dir "assets" Folder name next to the file when save_dir is empty.
fallback_dir "~/Downloads/sublime-paste" Folder for unsaved buffers.
markdown_template "![]({path})" Text inserted in markdown files.
plain_template "{path}" Text inserted in other files.
fallback_to_text_paste true Normal paste when there is no image.
preview_after_paste true Show the preview right after a paste.
auto_preview true Show previews when a file is opened.
preview_max_width 600 Scale down wider previews (pixels).
pngpaste_path "" Full path to pngpaste. Empty means auto-detect.

Templates accept {path} (the link) and {name} (the file name).

Key bindings

The package ships no active key bindings, so it cannot clash with other packages. To add them, open Preferences > Package Settings > PasteImage > Example Key Bindings and copy this into the right-hand pane:

[
    { "keys": ["super+ctrl+shift+v"], "command": "paste_image" },
    { "keys": ["super+ctrl+p"], "command": "paste_image_preview" }
]

Troubleshooting

Open the console with Ctrl+</kbd>. Lines that start with [PasteImage]show whichpngpaste` binary ran and its exit code.

Requirements

License

MIT

Results

Packages