diff --git a/index.js b/index.js
index b3705c1..b2c07cc 100644
--- a/index.js
+++ b/index.js
@@ -83,6 +83,14 @@ const create = (win, options) => {
webContents(win).insertText(clipboardContent);
}
}),
+ copyImage: decorateMenuItem({
+ id: 'copyImage',
+ label: 'Copy Image',
+ visible: props.mediaType === 'image',
+ click() {
+ webContents(win).copyImageAt(props.x, props.y);
+ }
+ }),
saveImage: decorateMenuItem({
id: 'save',
label: 'Save Image',
@@ -157,6 +165,7 @@ const create = (win, options) => {
defaultActions.separator(),
defaultActions.saveImage(),
options.showSaveImageAs && defaultActions.saveImageAs(),
+ defaultActions.copyImage(),
options.showCopyImageAddress && defaultActions.copyImageAddress(),
defaultActions.separator(),
defaultActions.copyLink(),
diff --git a/readme.md b/readme.md
index 78828be..b166825 100644
--- a/readme.md
+++ b/readme.md
@@ -100,6 +100,13 @@ Default: `false`
Show the `Copy Image Address` menu item when right-clicking on an image.
+#### showCopyImage
+
+Type: `boolean`
+Default: `true`
+
+Show the `Copy Image` menu item when right-clicking on an image.
+
#### showSaveImageAs
Type: `boolean`
@@ -188,6 +195,7 @@ Default actions:
- `cut`
- `copy`
- `paste`
+- `copyImage`
- `saveImage`
- `saveImageAs`
- `copyImageAddress`