Tys
Tys

Reputation: 3610

Paste image from clipboard to web form

I see that this has been discussed a few times before, but that was 2010 and before. Now i was writing a new email in my gmail client and noted that i could just paste an image into the mail body / webform.

I was quite happy to see this as i have been looking for a similar solution for a while.

Can anyone provide some details on how this works? Is it Flash? Or some JavaScript?

Upvotes: 5

Views: 18308

Answers (3)

Simon E.
Simon E.

Reputation: 58490

From 2011 (which might be a bit out of date now) this link might be a great starting point for Chrome + Firefox:
http://joelb.me/blog/2011/code-snippet-accessing-clipboard-images-with-javascript/

(from the guy who built Pasteboard)

With IE (if anyone still needs to support IE) it sounds like you might need to resort to HTA, ActiveX, Flex, or Java. Have a look here:
Take a screenshot of a webpage with JavaScript?

Upvotes: 1

micho
micho

Reputation: 2226

Here is another alternative, inspired by Github's image paste. Seems to work with jQuery.

https://github.com/Rovak/InlineAttachment

Upvotes: 2

mpx
mpx

Reputation: 209

It is html5 + javascript, and or flash (depends on the browser) This link should get you strated: http://strd6.com/2011/09/html5-javascript-pasting-image-data-in-chrome/

A little warning though, this only works in chrome as of now.

Upvotes: 4

Related Questions