We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code prints the image's width and height only after a timeout.
onUploaded: function (error, fileRef) { var img = new Image; img.src = Blaze._globalHelpers['fileURL'](fileRef); setTimeout(function () { console.log("5 sec delay:", img.height, " x ", img.width); }, 5000); console.log("First try: ", img.height, " x ", img.width);
Is there a way to get this data without using a timeout?
The text was updated successfully, but these errors were encountered:
http://stackoverflow.com/questions/5633264/javascript-get-image-dimensions
Sorry, something went wrong.
No branches or pull requests
This code prints the image's width and height only after a timeout.
Is there a way to get this data without using a timeout?
The text was updated successfully, but these errors were encountered: