Checking the Image pixel of an attachment

Hello,

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.

Best Regards

Hello @Rinu,

You can only validate the attached file extension and size. Please find the code example in this post: