Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <div id="imagen"></div>
- <script type="text/Javascript">
- var image = new Image();
- image.onload = function(){
- console.log(image.width); // image is loaded and we have image width
- }
- image.src = 'data:image/png;base64,';
- document.getElementById("imagen").appendChild(image);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement