Closed griffinqiu closed 7 years ago
It works if I copied more than one png files. However, I will get an empty file if I only copy one png file
@griffinqiu Oh no, that doesn't sound great. However, I haven't been able to reproduce this. How are you copying the PNG file in the first place?
I copied that png file with command-c
In Preview, or in Finder?
in Finder. However, it could be paste one file if I copy two files in Finder
OK, I have been able to reproduce this locally with another destination application:
Result: 1024x1024 PNG that represents the file type.
I don't think Finder actually makes the image data available, but provides a reference to the original file. Looking at the output of pbpaste
, it is the filename, not the contents of the file.
Ultimately I don't think Finder Copy is a supported source for pngpaste, and it only supports copying an image directly, rather than copying a reference to a file.
Thanks, I got it
I installed pngpaste via brew. However, the pngpaste does not work as well. An empty image been generate like: