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

Optimize image in clipboard #4

Open
jrobichaud opened this issue Dec 14, 2022 · 4 comments
Open

Optimize image in clipboard #4

jrobichaud opened this issue Dec 14, 2022 · 4 comments

Comments

@jrobichaud
Copy link

jrobichaud commented Dec 14, 2022

I have a feature request that I believe would be a great improvement.

Another command that takes the image in the clipboard, optimizes it and puts it back to the clipboard.

Use case:

  1. I take screenshot to clipboard using standard macOS shortcut or any other tool allowing to copy an image to the clipboard
  2. I'd like to run optimization through alfred that puts back the result in the clipboard
  3. I could then paste the optimized image using CMD+V (and result accessible to the clipboard history)
@AlexanderWillner
Copy link
Owner

Interesting idea. For this we would need:

  1. A way to store the clipboard image to a file (need to find some code for this)
  2. Invoke the processes on said file
  3. Move the image file to the clipboard again (e.g. using https://gist.github.com/mwender/49609a18be41b45b2ae4)
  4. Delete the temporary image file

@jrobichaud
Copy link
Author

You could consider using the shell commands pbpaste and pbcopy.

@AlexanderWillner
Copy link
Owner

afaik that's working for text only

@jrobichaud
Copy link
Author

@AlexanderWillner, you are totally right, my bad.

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

No branches or pull requests

2 participants