Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<script>
onload=function(){
var img = new Image();
img.onload = function() {
window.parent.postMessage({status: "image", data: img.width}, "*");
};
img.onerror = function() {
window.parent.postMessage({status: "image", data: "error"}, "*");
};
};
</script>