pipelex.input.image_dimensions_unsupported
An input image's dimensions are outside what the model reads
| Type | https://docs.pipelex.com/errors/pipelex.input.image_dimensions_unsupported |
| Family | pipelex.input: Refusals of a run's input that name a fact no core code carries. |
| Domain | input: the caller acts, by changing the request or its inputs |
| Retry | no: repeating the operation fails the same way |
| HTTP status | 422 |
| Raised as | a problem document, sent as the body of an HTTP response or kept in a run's record |
What it means
The model reads images whose sides lie between two bounds, and refuses one outside them rather than resizing it, as TypeSafe's Jev models do; the image is refused before any request is sent, so nothing is spent.
What to do
Resize the image so each side lies between params.min_side and params.max_side pixels, or send it to a model that reads images of its size, then run the method again.
Next steps
A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the caller, and the second for any other reader.
| Reader | Kind | Detail |
|---|---|---|
| The domain's actor | change_input |
Resize the image of the input '{input}' so each side is between {min_side} and {max_side} pixels, or give it to a model that reads it, then send the request again. |
| Any other reader | change_input |
Pass this to the caller, who must resize the image of the input '{input}' to between {min_side} and {max_side} pixels a side. |
Detail
The problem's detail is written from this template, filled with the occurrence's parameters:
The model '
{model}' reads images of{min_side}to{max_side}pixels a side, and the image of the input '{input}' is{width}×{height}pixels.
Parameters
Every parameter is present on every occurrence of the code.
| Name | Type | Description |
|---|---|---|
input |
identifier |
The input the image came from. |
model |
identifier |
The model the image would be sent to. |
width |
integer |
The image's width, in pixels. |
height |
integer |
The image's height, in pixels. |
min_side |
integer |
The fewest pixels the model reads on each side. |
max_side |
integer |
The most pixels the model reads on each side. |
See also
- Judgment
- The MTHDS error registry format, which describes the members of this page
- Error Codes, every Pipelex code