I want to force the user to upload square pictures. I mean that the width and height of the square be equal.
In core validators of the yii2 we have image
type with this definition:
['primaryImage', 'image', 'extensions' => 'png, jpg',
'minWidth' => 100, 'maxWidth' => 1000,
'minHeight' => 100, 'maxHeight' => 1000,
],
now if i want to use custom validator which support client validator what should I do. Please i want to limit the user to upload my forced width and height, just want to force that image be square.