api.tipmoto.com » API documentation » Agendas » Dealers list » Dealer » Moto/Parts/Accessories » Photo » Resize

Agenda photo/resize

Resizes the photos of ads

Agenda features

Name Options
Supported methods GET - only displays the specification
PUT/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:
  • jpg - default
  • png
  • webp
mode Crop mode select Possible values:
  • max - default
  • crop
  • fill
  • resize
engine Engine used select Possible values:
  • imagemagick - default
  • gd
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:
  • image - returns the image data directly
  • data - returns the data in the given format (XML/JSON), see below
  • location - HTTP redirect with a Location header to res.tmimg.cz

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 rw P S ➀ ➁
content Photo data text Photo file (Base64-encoded)          
format Photo format string Possible values:
  • jpg - default
  • png
  • webp
         
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

TipMoto.com Contact us