Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I added copy feature. #14

Closed
wants to merge 2 commits into from
Closed

I added copy feature. #14

wants to merge 2 commits into from

Conversation

moicci
Copy link

@moicci moicci commented Jul 26, 2018

I added a new option "-c" to copy from an image file to clipboard.

Copy link
Owner

@jcsalterego jcsalterego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool functionality! I don't know if it belongs in something called pbpaste (pasteboard... paste). Maybe it belongs in something entirely different like pb? I'll think on it a bit.

{
NSData* data = [NSData dataWithContentsOfFile:imageFile];
if (data == nil) {
fatal("Could not read data from file!");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not stated but I use four spaces instead of tabs :\

@moicci
Copy link
Author

moicci commented Jul 27, 2018

I also realize "copy" functionality should be separated from pngpaste.
It should another executable as "pngcopy" like "pbcopy". I will make it.

@moicci moicci closed this Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants