Skip to content
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

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

Open
cfsmp3 opened this issue Mar 26, 2023 · 6 comments
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.

Comments

@cfsmp3
Copy link

cfsmp3 commented Mar 26, 2023

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.

@cfsmp3 cfsmp3 added the Unconfirmed Bug The bug is not confirmed by anyone else. label Mar 26, 2023
@mmahmoudian
Copy link
Member

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

@mmahmoudian mmahmoudian added the Waiting For Info Addressing the issue or merging the PR is halted and we are waiting for more info to be provided. label Mar 26, 2023
@cfsmp3
Copy link
Author

cfsmp3 commented Mar 26, 2023

~/.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

@mmahmoudian mmahmoudian removed the Waiting For Info Addressing the issue or merging the PR is halted and we are waiting for more info to be provided. label Mar 26, 2023
@GaetanLepage
Copy link

I observe the same behavior.

Information:

  • OS: linux NixOS unstable
  • Sway
  • Configuration:
[General]
disabledTrayIcon=true
drawColor=#ff0000
drawFontSize=23
drawThickness=3
savePath=/home/gaetan/downloads
savePathFixed=false
showDesktopNotification=false
showHelp=false
uiColor=#ffffff

@remicorniere
Copy link

Same for me.
Info:

  • OS: fedora 38
  • Sway
  • Config:
[General]
contrastOpacity=188
disabledTrayIcon=false
drawColor=#ff0000
drawFontSize=8
drawThickness=7
savePath=/home/my_username/Pictures
savePathFixed=false
showStartupLaunchMessage=true
startupLaunch=true

@AkechiShiro
Copy link

AkechiShiro commented Mar 9, 2024

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
Copy link

Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.
Projects
None yet
Development

No branches or pull requests

6 participants