Skip to content
/ pngpaste Public
forked from moicci/pngpaste

Paste PNG into files, much like pbpaste does for text.

License

Notifications You must be signed in to change notification settings

win93/pngpaste

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pngpaste

Paste PNG into files, much like pbpaste does for text. And also copy image from clipboard from a file like pbcopy.

However instead of pngpaste > thefile.png, it's pngpaste thefile.png, so one does not accidentally barf binary into the console.

Motivation

http://apple.stackexchange.com/q/11100/4795

Build

$ make all

Installation

From source:

$ make all
$ sudo make install

Or with Homebrew:

$ brew install pngpaste

Usage

$ pngpaste hooray.png

... pastes an image to a file

$ pngcopy hooray.png

... copies an image from a file

Bonus and Disclaimers

Supported input formats are PNG, PDF, GIF, TIF, JPEG.

Supported output formats are PNG, GIF, JPEG, TIFF.

Output formats are determined by the provided filename extension, falling back to PNG.

It's unclear if EXIF data in JPEG sources are preserved. There's an issue with pasting into JPEG format from a GIF source.

Error Handling

Minimal :'(

About

Paste PNG into files, much like pbpaste does for text.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 96.8%
  • Makefile 3.2%