api.tipmoto.com » API documentation » res.tmimg.cz

res.tmimg.cz

This service is outside the API (you do not need to have API access set up), but it is useful in combination when working with the API.

By calling a specific URL you get the image in the requested size and with the requested adjustments. The image is then cached on the server (including support for HTTP headers such as Last-Modified, E-tag etc.), i.e. you can also use this URL in your application.


Resizing images to the requested size

Resizing is done by calling a URL in the form

http(s)://res.tmimg.cz/{agenda (t|d|p)}/i/{floor(ad ID/1000)}/{ad ID}_{photo ID}/{width}x{height}{mode (m|c|f|r)}{-parameters}.{format}

Options:
Basic example - if the URL is, for example:
https://d.tmimg.cz/d/i/12/12345_9.jpg
The basic URL for resizing will then be:
https://res.tmimg.cz/d/i/12/12345_9/800x600.jpg

Advanced options:
Example URL:
https://res.tmimg.cz/t/i/123/123456_7/800x600f-q_80-bg_0_0_255.jpg
Creates, from photo no. 7 of the motorcycle ad ID 123456, a JPEG image with quality 80 and size 800x600 - the image will be padded on a blue background.


Information on image sizes

The system also provides information on the image size, by calling a URL in the form:

http(s)://res.tmimg.cz/{agenda (t|d|p)}/i/{floor(ad ID/1000)}/{ad ID}_{photo ID}.{format}

Options:
Basic example - if the URL is, for example:
https://d.tmimg.cz/d/i/12/12345_9.jpg
The basic URL for getting the sizes will then be:
https://res.tmimg.cz/d/i/12/12345_9.xml

Resize in the API

Based on your requests, image resizing has also been built into the API - the sub-agenda resize belonging to the agenda photo.
In practice it is implemented by sending requests to res.tmimg.cz

TipMoto.com Contact us