8000 Add minPixels and maxPixels constraints · symfony/symfony-docs@32f90ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 32f90ee

Browse files
akeemanwouterj
authored andcommitted
Add minPixels and maxPixels constraints
1 parent 18ec40a commit 32f90ee

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

reference/constraints/Image.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,22 @@ maxHeight
274274
If set, the height of the image file must be less than or equal to this
275275
value in pixels.
276276

277+
minPixels
278+
~~~~~~~~~
279+
280+
**type**: ``integer``
281+
282+
If set, the amount of pixels of the image file must be greater than or equal to this
283+
value.
284+
285+
maxPixels
286+
~~~~~~~~~
287+
288+
**type**: ``integer``
289+
290+
If set, the amount of pixels of the image file must be less than or equal to this
291+
value.
292+
277293
maxRatio
278294
~~~~~~~~
279295

@@ -363,6 +379,22 @@ Minimum height expected is {{ min_height }}px.``
363379

364380
The error message if the height of the image is less than `minHeight`_.
365381

382+
maxPixelsMessage
383+
~~~~~~~~~~~~~~~~
384+
385+
**type**: ``string`` **default**: ``The image has to many pixels ({{ pixels }} pixels).
386+
Maximum amount expected is {{ max_pixels }} pixels.``
387+
388+
The error message if the amount of pixels of the image exceeds `maxPixels`_.
389+
390+
minPixelsMessage
391+
~~~~~~~~~~~~~~~~
392+
393+
**type**: ``string`` **default**: ``The image has to few pixels ({{ pixels }} pixels).
394+
Minimum amount expected is {{ min_pixels }} pixels.``
395+
396+
The error message if the amount of pixels of the image is less than `minPixels`_.
397+
366398
maxRatioMessage
367399
~~~~~~~~~~~~~~~
368400

0 commit comments

Comments
 (0)
0