---
title: "Discussion on \"Copy Image in Clipbaord to Electron App\" | Hashnode"
description: "Discussion on \"Copy Image in Clipbaord to Electron App\". TL;DR\nThis function returns a code of image source.\nconst copyImage = () => {\n  const _ = clipboard.availableFormats('clipboard')\n  if (_.includes('image/png') || _.includes('image/jpeg')) {\n    return clipboard.readImage('clipboard').toDataURL()\n  }..."
url: "https://hashnode.com/posts/copy-image-in-clipbaord-to-electron-app/6088fbbe4102cb3d97c000ed"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Copy Image in Clipbaord to Electron App](https://blog.hwaryong.com/copy-image-in-clipbaord-to-electron-app?utm_source=hashnode&utm_medium=feed)

TL;DR This function returns a code of image source. const copyImage = () => { const \_ = clipboard.availableFormats('clipboard') if (\_.includes('image/png') || \_.includes('image/jpeg')) { return clipboard.readImage('clipboard').toDataURL() }...

Apr 28, 2021 · 1 min read · blog.hwaryong.com  
Read the article

-   [#electron](https://hashnode.com/tag/electron)
-   [#images](https://hashnode.com/tag/images)

## Written by

[Hwaryong](https://hashnode.com/@Firedragon)

@Firedragon · Daegu, Korea

  
[View profile](https://hashnode.com/@Firedragon)

Node.js, Vue.js

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
