Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
  
</head>
<body>
  <div id="box2" contenteditable="true">画像ペーストエリア、</div>
<img src="" alt="" id="image">
  <p id="p_url">URL:</p>
  <p>方法1はクリップボードから取り出すのでblobとして存在している。画像形式は全てPNGとなっている。(mac)の場合、他は未検証</p>
  <p>方法2は、div contenteditable="true"を使いdiv要素に貼り付けられた画像を取得している。base64形式かurl形式の元の拡張子の状態で取得できる。</p>
  <p>ほとんどの場合方法1で取得できた。ウェブ上でコピーできる画像ならなんでも対応できた。</p>
  
 <p>検証したブラウザは safari chrome firefox 環境はmacです。</p>
  
  
  </body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers