Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions reference/constraints/Image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ add several other options.

If this option is false, the image cannot be landscape oriented.

.. versionadded:: 7.3

The ``allowLandscape`` option support for SVG files was introduced in Symfony 7.3.

``allowLandscapeMessage``
~~~~~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -234,6 +238,10 @@ Parameter Description

If this option is false, the image cannot be portrait oriented.

.. versionadded:: 7.3

The ``allowPortrait`` option support for SVG files was introduced in Symfony 7.3.

``allowPortraitMessage``
~~~~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -260,6 +268,10 @@ If this option is false, the image cannot be a square. If you want to force
a square image, then leave this option as its default ``true`` value
and set `allowLandscape`_ and `allowPortrait`_ both to ``false``.

.. versionadded:: 7.3

The ``allowSquare`` option support for SVG files was introduced in Symfony 7.3.

``allowSquareMessage``
~~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -358,6 +370,10 @@ Parameter Description
If set, the aspect ratio (``width / height``) of the image file must be less
than or equal to this value.

.. versionadded:: 7.3

The ``maxRatio`` option support for SVG files was introduced in Symfony 7.3.

``maxRatioMessage``
~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -477,6 +493,10 @@ Parameter Description
If set, the aspect ratio (``width / height``) of the image file must be greater
than or equal to this value.

.. versionadded:: 7.3

The ``minRatio`` option support for SVG files was introduced in Symfony 7.3.

``minRatioMessage``
~~~~~~~~~~~~~~~~~~~

Expand Down
Loading