I need code for checking image dimensions when i upload image? it need to check minimum, maximum values when i upload a image? can u ppl help me this is urgent issue so plz.
1
Answer
I need code for checking image dimensions when i upload image? it need to check minimum, maximum values when i upload a image? can u ppl help me this is urgent issue so plz.
Can u check the width and height properties of uploaded image. Like follows
System.Drawing.Image image = System.Drawing.Image.FromFile(fileupload.fileName);
int ActualWidth = image.Width;
int ActualHeight = image.Height;