@@ -210,6 +210,11 @@ add several other options.
210
210
211
211
If this option is false, the image cannot be landscape oriented.
212
212
213
+ .. note ::
214
+
215
+ This option does not apply to SVG files. If you use it with SVG files,
216
+ you'll see the error message defined in the ``sizeNotDetectedMessage `` option.
217
+
213
218
``allowLandscapeMessage ``
214
219
~~~~~~~~~~~~~~~~~~~~~~~~~
215
220
@@ -234,6 +239,11 @@ Parameter Description
234
239
235
240
If this option is false, the image cannot be portrait oriented.
236
241
242
+ .. note ::
243
+
244
+ This option does not apply to SVG files. If you use it with SVG files,
245
+ you'll see the error message defined in the ``sizeNotDetectedMessage `` option.
246
+
237
247
``allowPortraitMessage ``
238
248
~~~~~~~~~~~~~~~~~~~~~~~~
239
249
@@ -260,6 +270,11 @@ If this option is false, the image cannot be a square. If you want to force
260
270
a square image, then leave this option as its default ``true `` value
261
271
and set `allowLandscape `_ and `allowPortrait `_ both to ``false ``.
262
272
273
+ .. note ::
274
+
275
+ This option does not apply to SVG files. If you use it with SVG files,
276
+ you'll see the error message defined in the ``sizeNotDetectedMessage `` option.
277
+
263
278
``allowSquareMessage ``
264
279
~~~~~~~~~~~~~~~~~~~~~~
265
280
@@ -358,6 +373,11 @@ Parameter Description
358
373
If set, the aspect ratio (``width / height ``) of the image file must be less
359
374
than or equal to this value.
360
375
376
+ .. note ::
377
+
378
+ This option does not apply to SVG files. If you use it with SVG files,
379
+ you'll see the error message defined in the ``sizeNotDetectedMessage `` option.
380
+
361
381
``maxRatioMessage ``
362
382
~~~~~~~~~~~~~~~~~~~
363
383
@@ -477,6 +497,11 @@ Parameter Description
477
497
If set, the aspect ratio (``width / height ``) of the image file must be greater
478
498
than or equal to this value.
479
499
500
+ .. note ::
501
+
502
+ This option does not apply to SVG files. If you use it with SVG files,
503
+ you'll see the error message defined in the ``sizeNotDetectedMessage `` option.
504
+
480
505
``minRatioMessage ``
481
506
~~~~~~~~~~~~~~~~~~~
482
507
@@ -532,8 +557,9 @@ This message has no parameters.
532
557
533
558
.. note ::
534
559
535
- SVG images sizes are not currently supported. Using size constraints with
536
- these files will display this message.
560
+ Detecting the size of SVG images is not supported. This error message will
561
+ be displayed if you use any of the following options: ``allowLandscape ``,
562
+ ``allowPortrait ``, ``allowSquare ``, ``maxRatio ``, and ``minRatio ``.
537
563
538
564
.. _`IANA website` : https://www.iana.org/assignments/media-types/media-types.xhtml
539
565
.. _`PHP GD extension` : https://www.php.net/manual/en/book.image.php
0 commit comments