index.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE HTML>
  2. <!--
  3. /*
  4. * JavaScript Load Image Demo
  5. * https://github.com/blueimp/JavaScript-Load-Image
  6. *
  7. * Copyright 2011, Sebastian Tschan
  8. * https://blueimp.net
  9. *
  10. * Licensed under the MIT license:
  11. * https://opensource.org/licenses/MIT
  12. */
  13. -->
  14. <html lang="en">
  15. <head>
  16. <!--[if IE]>
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  18. <![endif]-->
  19. <meta charset="utf-8">
  20. <title>JavaScript Load Image</title>
  21. <meta name="description" content="JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing.">
  22. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  23. <!-- Jcrop is not required by JavaScript Load Image, but included for the demo -->
  24. <link rel="stylesheet" href="css/vendor/jquery.Jcrop.css">
  25. <link rel="stylesheet" href="css/demo.css">
  26. </head>
  27. <body>
  28. <h1>JavaScript Load Image Demo</h1>
  29. <p><a href="https://github.com/blueimp/JavaScript-Load-Image">JavaScript Load Image</a> is a library to load images provided as <a href="https://developer.mozilla.org/en/DOM/File">File</a> or <a href="https://developer.mozilla.org/en/DOM/Blob">Blob</a> objects or via URL.<br>
  30. It returns an optionally <strong>scaled</strong> and/or <strong>cropped</strong> HTML <a href="https://developer.mozilla.org/en/docs/HTML/Element/Img">img</a> or <a href="https://developer.mozilla.org/en/docs/HTML/Canvas">canvas</a> element.<br>
  31. It also provides a method to parse image meta data to extract <a href="https://en.wikipedia.org/wiki/Exif">Exif</a> tags and thumbnails and to restore the complete image header after resizing.</p>
  32. <ul class="navigation">
  33. <li><a href="https://github.com/blueimp/JavaScript-Load-Image/tags">Download</a></li>
  34. <li><a href="https://github.com/blueimp/JavaScript-Load-Image">Source Code</a></li>
  35. <li><a href="https://github.com/blueimp/JavaScript-Load-Image/blob/master/README.md">Documentation</a></li>
  36. <li><a href="test/">Test</a></li>
  37. <li><a href="https://blueimp.net">&copy; Sebastian Tschan</a></li>
  38. </ul>
  39. <br>
  40. <h2>Select an image file</h2>
  41. <p><input type="file" id="file-input"></p>
  42. <p>Or <strong>drag &amp; drop</strong> an image file onto this webpage.</p>
  43. <br>
  44. <h2>Result</h2>
  45. <p id="actions" style="display:none;">
  46. <button type="button" id="edit">Edit</button>
  47. <button type="button" id="crop">Crop</button>
  48. </p>
  49. <div id="result" class="result">
  50. <p>This demo works only in browsers with support for the <a href="https://developer.mozilla.org/en/DOM/window.URL">URL</a> or <a href="https://developer.mozilla.org/en/DOM/FileReader">FileReader</a> API.</p>
  51. </div>
  52. <br>
  53. <div id="exif" class="exif" style="display:none;">
  54. <h2>Exif meta data</h2>
  55. <p id="thumbnail" class="thumbnail" style="display:none;"></p>
  56. <table></table>
  57. </div>
  58. <br>
  59. <script src="js/load-image.js"></script>
  60. <script src="js/load-image-scale.js"></script>
  61. <script src="js/load-image-meta.js"></script>
  62. <script src="js/load-image-fetch.js"></script>
  63. <script src="js/load-image-exif.js"></script>
  64. <script src="js/load-image-exif-map.js"></script>
  65. <script src="js/load-image-orientation.js"></script>
  66. <!-- jQuery and Jcrop are not required by JavaScript Load Image, but included for the demo -->
  67. <script src="js/vendor/jquery.js"></script>
  68. <script src="js/vendor/jquery.Jcrop.js"></script>
  69. <script src="js/demo/demo.js"></script>
  70. </body>
  71. </html>