You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem Description
I would like to be able to implement a Copy Image feature in my app.
Right now, i cannot do this without first downloading the image and doing nativeImage.createFromBuffer(buffer) or doing nativeImage.createFromPath(path) if the image is on the filesystem. Ideally this would also work with the file protocol.
Adding support for webp would be great since right now you'd have to convert the downloaded image into a format supported by nativeImage in order to copy it to the clipboard.
Proposed Solution
Add a new nativeImage method, nativeImage.createFromURL(url) that downloads the image from the provided url and returns a NativeImage.
Alternatives Considered
None.
Additional Information
This can be done in app code, however having it in electron would greatly simplify this process.
More details: sindresorhus/electron-context-menu#79
Thank you!
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Problem Description
I would like to be able to implement a
Copy Image
feature in my app.Right now, i cannot do this without first downloading the image and doing
nativeImage.createFromBuffer(buffer)
or doingnativeImage.createFromPath(path)
if the image is on the filesystem. Ideally this would also work with the file protocol.Adding support for
webp
would be great since right now you'd have to convert the downloaded image into a format supported bynativeImage
in order to copy it to the clipboard.Proposed Solution
Add a new
nativeImage
method,nativeImage.createFromURL(url)
that downloads the image from the provided url and returns aNativeImage
.Alternatives Considered
None.
Additional Information
This can be done in app code, however having it in electron would greatly simplify this process.
More details: sindresorhus/electron-context-menu#79
Thank you!
The text was updated successfully, but these errors were encountered: