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

[Validator] Validate SVG ratio in Image validator #20496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2025
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 20 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.