jcsalterego / pngpaste Goto Github PK
View Code? Open in Web Editor NEWPaste PNG into files, much like pbpaste does for text.
License: Other
Paste PNG into files, much like pbpaste does for text.
License: Other
Would it be possible to make it format agnostic? e.g. to detect JPG and store as JPG... I would not like to clone just to make a jpg version of it; would it be cool to have it all in one.
wdyt?
Would that require a lot of code/effort?
Hey, I'm setting up a quick homebrew formula for this; would you mind tagging master w/ a specific version?
Hello,
Thanks for the work with pngpaste.
I would like to have a flag (possible values are, for example, --raw
and --binary
— you might come with something better) that would allow pngpaste to behave like pbpaste
.
That way, I can pipe the raw content to another process, such as curl
, and upload it directly from memory, without having to create a temp file for that.
Is this something you could do, or should I educate myself with the source and create a PR?
Thanks.
Now if only I could do this:
pngpaste - | convert - -resize 50% - | pngcopy
Thanks for this project, it's fantastic to have this functionality.
I'd like to suggest changing the README and repo description to say
Paste PNG into files on MacOS, much like pbpaste does for text.
Currently the only clue that it's MacOS only is the apple.stackexchange link.
I distribute pngpaste to users in my Adobe After Effects CEP extension as a means of pasting clipboard images into After Effects. I am getting some users reporting this error on M1 macs. However, I am on an M1 and I am not getting this error. Any suggestions?
pngpaste will only paste or base64 convert image data of the first frame of an animation.
It would be nice to output the entire file data, instead.
Why are there newer tags with lower version numbers than the older tags?
Is this software still being maintained?
Hello,
i have Problem in Building.
cc -Wall -g -O3 -ObjC \
-framework Foundation -framework AppKit \
-o pngpaste \
pngpaste.m
cc: error: Foundation: No such file or directory
cc: error: AppKit: No such file or directory
cc: error: unrecognized command line option ‘-framework’
cc: error: unrecognized command line option ‘-framework’
make: *** [Makefile:3: all] Error 1
how can fix?
cc -Wall -g -O3 -ObjC \
-framework Foundation -framework AppKit \
-o pngpaste \
pngpaste.m
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:68,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
from pngpaste.h:5,
from pngpaste.m:5:
/usr/include/MacTypes.h: In function ‘Debugger’:
/usr/include/MacTypes.h:699: error: expected declaration specifiers before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:711: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:758: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:770: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:782: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:792: error: expected declaration specifiers before ‘#pragma’
<snip>
In file included from pngpaste.m:5:
pngpaste.h:19: error: expected declaration specifiers before ‘ImageType’
pngpaste.h:23: error: expected specifier-qualifier-list before ‘NSString’
pngpaste.h:27: error: storage class specified for parameter ‘Parameters’
pngpaste.h:33: error: expected declaration specifiers before ‘ImageType’
pngpaste.h:34: error: expected declaration specifiers before ‘NSData’
pngpaste.h:35: error: expected declaration specifiers before ‘NSData’
pngpaste.h:36: error: expected declaration specifiers before ‘NSData’
pngpaste.h:38: error: expected declaration specifiers before ‘Parameters’
pngpaste.h:40: warning: ‘main’ is usually a function
pngpaste.m:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
pngpaste.m:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
pngpaste.m:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
pngpaste.m:31: error: expected declaration specifiers before ‘ImageType’
pngpaste.m:46: error: expected declaration specifiers before ‘NSData’
pngpaste.m:64: error: expected declaration specifiers before ‘NSData’
pngpaste.m:73: error: expected declaration specifiers before ‘NSData’
pngpaste.m:97: error: expected declaration specifiers before ‘Parameters’
pngpaste.m:138: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
pngpaste.m:170: error: old-style parameter declarations in prototyped function definition
pngpaste.m:170: error: expected ‘{’ at end of input
make: *** [all] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.