xrelkd/clipcat

clipcatd ignores images

Closed this issue · 5 comments

There is a "Copy/Paste Image" item in the features in readme, and other issues mention image manipulation, so I tried to put an image in the clipboard using two methods

  • flameshot
  • import -frame -quality 9 png:- | xclip -selection clipboard -t image/png

In both cases, the image clearly gets into the buffer (I can paste it into gimp for example), but the clipcatctl list does not show corresponding element and there are no messages at all in the clipcatd log (DEBUG level is enabled) when taking an image to the buffer. Taking the text before and after taking the image works fine.

Do I misunderstand the logic of working with images, or is there some kind of bug?

I use version 0.7.0

xrelkd commented

That might be a bug when pasting an image from xclip and clipcat fails to capture the image. Let me investigate it.

BTW, could you copy the image from a browser such as Firefox? clipcatctl list shows something like

d15fa449e3c41c71: [image/png 36 KiB 2023-11-29T01:16:57.001365993Z]

when capturing an image.

BTW, could you copy the image from a browser such as Firefox? clipcatctl list shows something like

Yes, it's working.

But in my workflow capturing images with flameshot is used most often.

xrelkd commented

This is a fix for current issue. #104
Please give it a try, thank you! @strafer

I built the program from the develop branch and now it works fine: the images are saved and visible in the list.

Thank you very much ^_^

I am now waiting for a new version with this fix, I am thinking of picking up the package in AUR, because it has become an orphan and has not been updated for a long time.

xrelkd commented

Hi @strafer,
Clipcat 0.7.1 is released.
https://github.com/xrelkd/clipcat/releases/tag/v0.7.1
Hope it can help you!