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

[feat][clipboard-manager] Add "readImagePNG()" method #2225

Open
WolfBearGames opened this issue Dec 19, 2024 · 0 comments
Open

[feat][clipboard-manager] Add "readImagePNG()" method #2225

WolfBearGames opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers plugin: clipboard-manager

Comments

@WolfBearGames
Copy link

I am using the clipboard-manager plugin and readImage() in JS to get an image from the clipboard. The method returns the data as an uncompressed rgba bytes array which results in over 100MB for a screenshot of a UHD Desktop. This results in multiple seconds of wait time and is very inefficient.

A new readImagePNG() method could transfer the data as a PNG resulting a less data that need to be transferred.

The code for this already exists, before it was changed:
d57df4d

It should be relatively easy to add a readImagePNG() as an additional option in the clipboard-manager plugin.
(Alternatively, the readImage() method could accept a paramater which format to return)

@FabianLars FabianLars added enhancement New feature or request good first issue Good for newcomers plugin: clipboard-manager labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers plugin: clipboard-manager
Projects
None yet
Development

No branches or pull requests

2 participants