Jump to content

rayps

Member
  • Posts

    3
  • Joined

  • Last visited

rayps's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Yes, somehow it just worked as I expected. It's a little bit confused at the first moment, it's seems like that's how macOS store bitmap data in clipboard. Because there's no JPEG type in NSPasteboard.PasteboardType
  2. Thank you! I managed to get it work today. I'll put the solution here in case Google index this post. https://gist.github.com/RayPS/5f8c31de2a4ded2f0e947996c30ab1fe
  3. Hello everyone. I'm making a workflow to convert the copied PNG then paste it as JPG. The PNG is mostly just screenshot taken with โŒ˜โ‡งโŒƒ4 or copied through the "Copy Image" in the context menu of Chrome/Safari. My goal is after copied/captured a PNG image, run the workflow in Alfred, then paste it somewhere as JPG, more excatly not pasting it in Finder but in some other software, document editing or Discord ,etc. I was able to read the clipboard image with {clipboard:0}, but it seems like only getting a text description as in Alfred's clipboard history. And I also know that I can set clipboard content with "Outputs > Copy to Clipboard", but only the content types of text or rich text are allowed. If anyone can give me an idea I will be appreciated.
×
×
  • Create New...