flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.55k stars 1.57k forks source link

Screenshot save to file works as expected but copy to clipboard produces an invalid image (linux sway) #3142

Open cfsmp3 opened 1 year ago

cfsmp3 commented 1 year ago

Flameshot Version

Flameshot v12.1.0 (Debian 12.1.0-1) Compiled with Qt 5.15.4 linux: 6.2.0-060200-generic ubuntu: 22.10

Installation Type

Using the ready-made package from Github Releases

Operating System type and version

ubuntu: 22.10

Description

When I get a screenshot of anything if I save it to disk then resulting file is what you'd expect. However if I capture the exact same thing as copy to clipboard, for example to paste it on slack or email, the resulting blob is invalid.

From what I'm seeing, it's exactly 8 KB (8192). Possibly it's just being cut short.

Steps to reproduce

  1. Assuming flameshot is already running and there's an icon on the bar
  2. Right-click, select "Take screenshot"
  3. Select area
  4. Click on the icon to copy to clipboard
  5. Paste in destination, for example slack or email

Screenshots or screen recordings

Attached more or less the same selection, one saving to disk (works), one saving to clipboard, pasting it into slack, and downloading what slack received.

flameshot_copy_to_clipboard flameshot_save_to_disk

System Information

This is Ubuntu Desktop 22.10 with the Regolith packages, using sway (not i3) ie Wayland.

Did all the sway config stuff for flameshot which other than this is working fine.

mmahmoudian commented 1 year ago

Please also provide your config file (~/.config/flameshot/flameshot.ini)

cfsmp3 commented 1 year ago

~/.config/flameshot/flameshot.ini

✦ ❯ cat ~/.config/flameshot/flameshot.ini
[General]
buttons=@Variant(\0\0\0\x7f\0\0\0\vQList<int>\0\0\0\0\x14\0\0\0\0\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x4\0\0\0\x5\0\0\0\x6\0\0\0\x12\0\0\0\xf\0\0\0\x16\0\0\0\x13\0\0\0\t\0\0\0\x10\0\0\0\n\0\0\0\v\0\0\0\r\0\0\0\x17\0\0\0\xe\0\0\0\f\0\0\0\x11)
contrastOpacity=188
GaetanLepage commented 1 year ago

I observe the same behavior.

Information:

remicorniere commented 11 months ago

Same for me.
Info:

AkechiShiro commented 6 months ago

Same behavior on my side under Sway this tends to happen sometimes after a specific display configuration, it does not always happen. I have not pinpointed the issue. Saving the screenshot on the disk does work properly.

@mmahmoudian any way we can further investigate this issue and pinpoint the problem ?

navaneeth-dev commented 1 week ago

Same issue here