In the API, we expose three image sizes. Here are examples taken from our HotelInfo API response:
Those three image URLs are exactly the same other than the last part of the file name:
1. The thumbnail ends with _t.jpg
2. The full size image ends with _b.jpg
3. The high resolution image ends with _z.jpg.
Here is the same URL with the other codes listed below:
Just a heads up though, we do have guaranteed image coverage and availability for the _b (big image) across all our hotels, but it is possible for the same image to not be available for the additional codes we offer. Check out the example below. The image that ends in _b is available, but the _z is not available. In these cases, if you want to make the photo team aware of the discrepancy, please write to email@example.com.
More resources for image information:
1. Variable derivatives are sized down to a specific pixel dimension on the image's longest side, while the shorter side is sized down proportionately.
2. Fixed derivatives are cropped to a specific pixel height and width from the center of the original image.
3. It should be noted, the 500x500, 1000x1000 and 2000x2000 variable derivatives are conditional and only generated if we have an original image that meets the minimum criteria. Images that are at least 1800 pixels on the longest side will have a "w" derivative generated. Image that are at least 850 pixels on the longest side will have a "z" derivative generated. Images that are at least 450 pixels on the longest side will have a "y" derivative created.