Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js copy image to clipboard

// Copies the image as a blob to the clipboard (PNG only)
navigator.clipboard.write([
  new ClipboardItem({
    [blob.type]: blob,
  }),
])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #copy #image #clipboard
ADD COMMENT
Topic
Name
3+2 =