Skip to content

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

@cfsmp3

Description

@cfsmp3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Unconfirmed BugThe bug is not confirmed by anyone else.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions