Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9ba07e3

Browse filesBrowse files
authored
validate svg ratio image
1 parent dfeaef1 commit 9ba07e3
Copy full SHA for 9ba07e3

File tree

1 file changed

+24
-0
lines changed
Filter options

1 file changed

+24
-0
lines changed

‎reference/constraints/Image.rst

Copy file name to clipboardExpand all lines: reference/constraints/Image.rst
+24Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ function, which requires the `PHP GD extension`_ to be enabled.
306306
If set, the height of the image file must be less than or equal to this
307307
value in pixels.
308308

309+
.. versionadded:: 7.3
310+
311+
The ``maxHeight`` option support for SVG files was introduced in Symfony 7.3.
312+
309313
``maxHeightMessage``
310314
~~~~~~~~~~~~~~~~~~~~
311315

@@ -331,6 +335,10 @@ Parameter Description
331335
If set, the amount of pixels of the image file must be less than or equal to this
332336
value.
333337

338+
.. versionadded:: 7.3
339+
340+
The ``maxPixels`` option support for SVG files was introduced in Symfony 7.3.
341+
334342
``maxPixelsMessage``
335343
~~~~~~~~~~~~~~~~~~~~
336344

@@ -383,6 +391,10 @@ Parameter Description
383391
If set, the width of the image file must be less than or equal to this
384392
value in pixels.
385393

394+
.. versionadded:: 7.3
395+
396+
The ``maxWidth`` option support for SVG files was introduced in Symfony 7.3.
397+
386398
``maxWidthMessage``
387399
~~~~~~~~~~~~~~~~~~~
388400

@@ -425,6 +437,10 @@ error message will be instead: ``The mime type of the file is invalid ({{ type }
425437
If set, the height of the image file must be greater than or equal to this
426438
value in pixels.
427439

440+
.. versionadded:: 7.3
441+
442+
The ``minHeight`` option support for SVG files was introduced in Symfony 7.3.
443+
428444
``minHeightMessage``
429445
~~~~~~~~~~~~~~~~~~~~
430446

@@ -450,6 +466,10 @@ Parameter Description
450466
If set, the amount of pixels of the image file must be greater than or equal to this
451467
value.
452468

469+
.. versionadded:: 7.3
470+
471+
The ``minPixels`` option support for SVG files was introduced in Symfony 7.3.
472+
453473
``minPixelsMessage``
454474
~~~~~~~~~~~~~~~~~~~~
455475

@@ -502,6 +522,10 @@ Parameter Description
502522
If set, the width of the image file must be greater than or equal to this
503523
value in pixels.
504524

525+
.. versionadded:: 7.3
526+
527+
The ``minWidth`` option support for SVG files was introduced in Symfony 7.3.
528+
505529
``minWidthMessage``
506530
~~~~~~~~~~~~~~~~~~~
507531

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.