I'm not entirely clear on how the screenshot + pasteboard handling on macOS works. For example, as a user I perceive that when I press <shift-control-cmd-4>
I can select a region of my screen and capture this screenshot into the pasteboard. I then can simply <cmd-v>
(paste) this into many applications. Fore example, if I paste this into most chat applications (Messages, MatterMost, Discord, etc.) it shows up as a PNG file that is then uploaded to the hosting service.
Is there a way method to capture a pasteboard image and then send this to an optimizer (something like ImageOptim that generally get's between 15-25% additional lossless compression out of most screenshots) that can then put this back into the pasteboard for pasting it on into an app for additional seamless lossless compression?