When the image gets saved, the height and width of the image get saved in the model correctly. I have a requirement where I need to validate the dimensions of the image before save. It has to be of precisely the same dimensions. But when I try to access height or width before save, it gives me nil.
Is there any way where I can achieve this?
For now, I give a warning after saving, that the image is not of the desired dimensions. But thats not neat enough.