I want to be able to validate the image is exactly a certain with or a certain height, or if it's square.
In the validation block of the model that has_attachment
, when I try to access image_size
, width
, or height
, it always comes out as null.
I also asked the question here if you want more details.
Yea, you need to hack a bit in order to get it to work, but not so much. Adapting from attachment_fu's own image processor: