Skip to content

Instantly share code, notes, and snippets.

@cimm cimm/image_width.js
Created Feb 2, 2015

What would you like to do?
Get the image width in client side JavaScript
var file = ... // a File web API interface:
img = new Image();
img.src = URL.createObjectURL(file);
img.onload = function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.