You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposed Change
If a single image is copied in cherrytree do not use html format for the clipboard. Instead use an image format. This will allow pasting into Teams/Chrome.
Version, Operating system
Description: Ubuntu 22.04.5 LTS
Describe the bug
If I copy an image from cherrytree and try to paste it into Teams it does not work. I present a workaround here using xclip.
To Reproduce
Steps to reproduce the behavior:
Go to Teams
Copy an image someone sent you.
Paste it into cherrytree. (It works.)
Paste it into Teams. (It works.)
Right click on image in cherrytree.
Select Copy Image
Paste it into cherrytree. (It works.)
Paste it into Teams. (It doesn't work.)
Run this work-around command in terminal: xclip -o -selection clipboard -t image/png | xclip -i -selection clipboard -t image/png
Paste into Teams. (Now it works.)
Screenshots
At step 3 and 4 the clipboard has this result:
Discussion
I don't think it's actually a bug with Cherrytree per-se. However this is a pain in practice because I often want to share my notes on teams with copy/paste, so if cherrytree can smooth it out that would be a plus.
Ideally Teams/Chrome would correctly paste html with images intact. I'm not sure if this is something that can be fixed by not using /tmp files and doing some sort of html encoding instead. Obviously there will be tradeoffs there for large files, etc. Yuck.
Teams/Chrome seems to paste as html, because if I select a section of text and images, the text pastes correctly into teams and only the images are left out.
I notice that I can paste the image from cherrytree nicely into LibreOffice Writer. And if I copy just the image out of LibreOffice Writer I can then paste it into Teams. If I do that the clipboard has this result:
I don't know all the details of how this is supposed to work or whose fault it is that this doesn't work: Teams? Chrome? Ubunutu/Linux? Cherrytree?
But I suspect this is a problem because Chrome isn't reading the images from /tmp/ where the png files are stored during copy/paste probably due to security concerns.
The text was updated successfully, but these errors were encountered:
Proposed Change
If a single image is copied in cherrytree do not use html format for the clipboard. Instead use an image format. This will allow pasting into Teams/Chrome.
Version, Operating system
Description: Ubuntu 22.04.5 LTS
Describe the bug
If I copy an image from cherrytree and try to paste it into Teams it does not work. I present a workaround here using xclip.
To Reproduce
Steps to reproduce the behavior:
xclip -o -selection clipboard -t image/png | xclip -i -selection clipboard -t image/png
Screenshots
At step 3 and 4 the clipboard has this result:
At steps 7 and 8 the clipboard has this result:
At step 10 the clipboard has this result:
Discussion
I don't think it's actually a bug with Cherrytree per-se. However this is a pain in practice because I often want to share my notes on teams with copy/paste, so if cherrytree can smooth it out that would be a plus.
Ideally Teams/Chrome would correctly paste html with images intact. I'm not sure if this is something that can be fixed by not using /tmp files and doing some sort of html encoding instead. Obviously there will be tradeoffs there for large files, etc. Yuck.
Teams/Chrome seems to paste as html, because if I select a section of text and images, the text pastes correctly into teams and only the images are left out.
I notice that I can paste the image from cherrytree nicely into LibreOffice Writer. And if I copy just the image out of LibreOffice Writer I can then paste it into Teams. If I do that the clipboard has this result:
If I select text and image in LibreOffice Writer I get the same problem where I can't paste to Teams.
I don't know all the details of how this is supposed to work or whose fault it is that this doesn't work: Teams? Chrome? Ubunutu/Linux? Cherrytree?
But I suspect this is a problem because Chrome isn't reading the images from /tmp/ where the png files are stored during copy/paste probably due to security concerns.
The text was updated successfully, but these errors were encountered: