-
Notifications
You must be signed in to change notification settings - Fork 81
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
WebP Support #190
Comments
It should be pretty easy to implement, I haven't touched maim in quite a while though since Wayland was trying to supersede and eliminate all existing screenshot apps due to security reasons. That was a couple years ago, and now it seems like they've added a form of implicit authentication with "Portals". Described here: https://gitlab.freedesktop.org/wayland/wayland/issues/32 It still requires a lot of work on my end, but if I can get it to work the way I expect I'll definitely add WebP support. |
I think this can be closed now. |
Resolved by #233. |
I can't get webp images to paste through xclip as per the example in the readme (while replacing mimetype and even adding --format=webp). Could it be on xclip's side? |
First of all, maim generates perfect webp at least on my machine. You can easily validate it for yourself:
When I pipe webp image into xclip like this: xclip seems to be working well, too. You can validate xclip like this:
|
I see, my bad, had only tested one program (Wire chat) and I knew it accepted webp images so I didn't expect it to choke on the mimetype, which it does by not reacting in any way to paste attempts. But I can confirm my xclip output looks similar to yours and it also pastes on e.g. GIMP with no problems. Thanks for the info. |
Yeah, webp is still relatively new (even though it is based on old VP8 video codec!) and most software is not prepared to encounter webp images. |
It seems like WebP is going to be the format of the future, since it outperforms PNG for the same result, so omitting it from
maim
is a bit unfortunate. Client support is pretty wide, but I'm not really sure how many open libraries there are for it. Is that why?The text was updated successfully, but these errors were encountered: