Giter Club home page Giter Club logo

Comments (7)

griffinqiu avatar griffinqiu commented on August 23, 2024

It works if I copied more than one png files.
However, I will get an empty file if I only copy one png file

from pngpaste.

jcsalterego avatar jcsalterego commented on August 23, 2024

@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?

from pngpaste.

griffinqiu avatar griffinqiu commented on August 23, 2024

I copied that png file with command-c

from pngpaste.

jcsalterego avatar jcsalterego commented on August 23, 2024

In Preview, or in Finder?

from pngpaste.

griffinqiu avatar griffinqiu commented on August 23, 2024

in Finder. However, it could be paste one file if I copy two files in Finder

from pngpaste.

jcsalterego avatar jcsalterego commented on August 23, 2024

OK, I have been able to reproduce this locally with another destination application:

  1. Copy one PNG in Finder (highlight and Edit > Copy "file.png")
  2. Paste in Photoshop

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.

from pngpaste.

griffinqiu avatar griffinqiu commented on August 23, 2024

Thanks, I got it

from pngpaste.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.