Skip to content

Consider switching to retrieving PNG on Windows #192

@wcassels

Description

@wcassels

Hi! Thanks for your work maintaining this crate.

I was wondering if there's any reason not to fetch image data in PNG format on Windows. For context, I've run into a case where images copied from Firefox lose transparency data, I think due to a longstanding bug (this one? 17 years old!!); the results of get().image() have all zeroes in the alpha channel. My sense from a quick google is that implementation of transparency for CF_DIBV5 is inconsistent at best, and switching to PNG would make things more robust. But I know next to nothing about Windows 😁

Related: I saw that https://github.com/1Password/arboard/pull/141/files has already implemented setting images in PNG.

If this seems like a reasonable idea to you, I'd be happy to have a go at the implementation!

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-WindowsWork related to the clipboard on Windows.enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions