Hi Raghu,
There is nothing specific to angular about this. do something like this in
your (change) handler:
checkDimenstions(ev: Event) {
if (ev && ev.target && ev.target.files) {
const file = ev.target.files[0];
const img = new Image();
img.onload = function() {
alert('Width:' + this.width + ' Height: ' + this.height);
};
img.src = URL.createObjectURL(file);
}
}
(completely untested!)
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/f020435d-c694-4b6b-a44b-b7261e7e17c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.