Paste image from clipboard to web form

后端 未结 3 670
一个人的身影
一个人的身影 2020-12-11 07:08

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 im

相关标签:
3条回答
  • 2020-12-11 07:31

    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.

    0 讨论(0)
  • 2020-12-11 07:43

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

    https://github.com/Rovak/InlineAttachment

    0 讨论(0)
  • 2020-12-11 07:44

    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, 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?

    0 讨论(0)
提交回复
热议问题