You need to sign in to do that
Don't have an account?

Validating Image Dimensions (width and height) of an image saved as an attachment
Hello, I need to validate the image dimensions, i.e. its width and height. Is there any way in which i can do this after saving the image as an Attachment record through JavaScript or through VF. Please suggest some alternative ways to do this if you know. Any help would be appreciated. Thanks, Avinash Kaltari.
Tyrout the syntax given below :
document.getElementById("img1").style.width=500;
document.getElementById("img1").style.height=500;
Hope this helps.