← All projects
Project record1 mention
Originally shared on Hacker News

pasteboard-image

A macOS command-line utility that adds image support to the clipboard: pbipaste saves an image copied in the browser to a file, and pbicopy loads a file onto the clipboard for pasting into apps like Preview. It fills the gap where built-in pbcopy/pbpaste don't work with images. Originally written in Python and being rewritten in Rust to make installation easier.

Last shared
01 / The problem

What it addresses

On Mac, the built-in pbcopy and pbpaste commands don't work with images.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. pasteboard-image

    A macOS command-line utility that adds image support to the clipboard: pbipaste saves an image copied in the browser to a file, and pbicopy loads a file onto the clipboard for pasting into apps like Preview. It fills the gap where built-in pbcopy/pbpaste don't work with images. Originally written in Python and being rewritten in Rust to make installation easier.

    Problem: On Mac, the built-in pbcopy and pbpaste commands don't work with images.

    Posted by @fragmede · Original source ↗

    Source text · @fragmede · · Source ↗

    On Mac, pbcopy and pbpaste don't work with images. I've written one that does in python, so I can right click on an image in Chrome, hit copy, then do pbipaste > foo.png and have it work. And then also do pbicopy < foo.png, and then be able to paste in Preview or whatever. it's incomplete but https://github.com/fragmede/pasteboard-image