From 9bc8bd102ab244e6dcef57c5caf3952e715c69f2 Mon Sep 17 00:00:00 2001 From: Arjan Keeman Date: Wed, 5 Apr 2017 10:39:30 +0200 Subject: [PATCH] Add minPixels and maxPixels constraints --- reference/constraints/Image.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/reference/constraints/Image.rst b/reference/constraints/Image.rst index 0e74501ae67..ae9195912d5 100644 --- a/reference/constraints/Image.rst +++ b/reference/constraints/Image.rst @@ -274,6 +274,22 @@ maxHeight If set, the height of the image file must be less than or equal to this value in pixels. +minPixels +~~~~~~~~~ + +**type**: ``integer`` + +If set, the amount of pixels of the image file must be greater than or equal to this +value. + +maxPixels +~~~~~~~~~ + +**type**: ``integer`` + +If set, the amount of pixels of the image file must be less than or equal to this +value. + maxRatio ~~~~~~~~ @@ -363,6 +379,22 @@ Minimum height expected is {{ min_height }}px.`` The error message if the height of the image is less than `minHeight`_. +maxPixelsMessage +~~~~~~~~~~~~~~~~ + +**type**: ``string`` **default**: ``The image has to many pixels ({{ pixels }} pixels). +Maximum amount expected is {{ max_pixels }} pixels.`` + +The error message if the amount of pixels of the image exceeds `maxPixels`_. + +minPixelsMessage +~~~~~~~~~~~~~~~~ + +**type**: ``string`` **default**: ``The image has to few pixels ({{ pixels }} pixels). +Minimum amount expected is {{ min_pixels }} pixels.`` + +The error message if the amount of pixels of the image is less than `minPixels`_. + maxRatioMessage ~~~~~~~~~~~~~~~