We have a requirement to attach image along with one of our form. I was just wondering if there are any way to to get the below properties before submitting the form from the attachment image. so that we can make sure every parameter is checked before submitting the form.
Pixel of the image, Width and height of the image, dpi and type.
ideally we want to ensure the attached image is as below.
648 x648 pixels, 24 bit, 92 dpi, less than 1.5 MB size and file type as jpg.
We are able to validate the files size and type, but not the other factors.