Agenda photo/resize
Resizes the photos of ads
Agenda features
| Name | Options |
|---|---|
| Supported methods |
GET - only displays the specificationPUT/POST - here also used to RETRIEVE INFORMATION, but the data specification must be sent in XML/JSON |
| Support for detail levels | ✘ |
| Support for filtering | ✘ |
| Support for full-text search | ✘ |
| Support for pagination | ✘ |
| Support for sorting | ✘ |
| Support for external identifiers | ✔ |
Support for schemas |
https://api.tipmoto.com/schemas/photo/resize.{xsd|rng} https://api.tipmoto.com/schemas/photo/resize-data.{xsd|rng} for the returned data |
Support for ?fail-on-warning |
✘ |
| Support for dry-run | ✘ |
Returns location |
On request (according to the specification) |
XML/JSON specification for retrieving an image
| Machine name | Name | Type | Information |
|---|---|---|---|
width |
Width in px | integer |
|
height |
Height in px | integer |
|
format |
Image format | select |
Possible values:
|
mode |
Crop mode | select |
Possible values:
|
engine |
Engine used | select |
Possible values:
|
quality |
Quality | integer |
Possible values: 0-100 |
compress |
Compression | Possible values: progressive for JPG, 0-6 for WebP (ImageMagick only) |
|
background |
Background | text |
For <mode>fill</mode>RGB value (0-255) separated by commas, e.g.: 255,0,0 |
filter |
Filter used | select |
ImageMagick only Possible values: UNDEFINED, POINT, BOX, TRIANGLE, HERMITE, HANNING, HAMMING, BLACKMAN,GAUSSIAN, QUADRATIC, CUBIC, CATROM (default), MITCHELL, LANCZOS, BESSEL, SINC |
nocache |
Do not cache | select |
Does not take the photo from the cache Possible value: true |
return |
Data return | select |
Possible values:
|
The submitted values are subject to the same rules as for res.tmimg.cz, which implements this function.
Agenda elements - returned data
| Machine name | Name | Type | Information | |||||
|---|---|---|---|---|---|---|---|---|
content |
Photo data | text |
Photo file (Base64-encoded) | |||||
format |
Photo format | string |
Possible values:
|
|||||
location |
Photo URL | string 255 |
Link to the photo on res.tmimg.cz |
rw = writable
P = required element
S = the element can be used for filtering and sorting
➀ = included in detail level id
➁ = included in detail level
summary
