Validator for the image size of a image file
Sets validator options
Accepts the following option keys: - minheight - minwidth - maxheight - maxwidth
Parameters: | array|Traversable – |
---|
Sets the minimum allowed width
Parameters: | integer – |
---|---|
Return type: | ImageSize Provides a fluid interface |
Throws : | ExceptionInvalidArgumentException When minwidth is greater than maxwidth |
Sets the maximum allowed width
Parameters: | integer – |
---|---|
Return type: | ImageSize Provides a fluid interface |
Throws : | ExceptionInvalidArgumentException When maxwidth is less than minwidth |
Sets the minimum allowed height
Parameters: | integer – |
---|---|
Return type: | ImageSize Provides a fluid interface |
Throws : | ExceptionInvalidArgumentException When minheight is greater than maxheight |
Sets the maximum allowed height
Parameters: | integer – |
---|---|
Return type: | ImageSize Provides a fluid interface |
Throws : | ExceptionInvalidArgumentException When maxheight is less than minheight |
Sets the minimum image size
Parameters: | array – The minimum image dimensions |
---|---|
Return type: | ImageSize Provides a fluent interface |
Sets the maximum image size
Parameters: | array|Traversable – The maximum image dimensions |
---|---|
Return type: | ImageSize Provides a fluent interface |
Sets the minimum and maximum image width
Parameters: | array – The image width dimensions |
---|---|
Return type: | ImageSize Provides a fluent interface |