| Name | image_thumb | |
| Description | Thumbnails an image to the requested size | |
| Accessible Via | /api/trans/image_thumb/<id of image content> | |
| HTTP GET | Yes | |
| HTTP POST | No | |
| Special Headers | None | |
| Login Required | No | |
| Required Arguments | maxwidth: maximum allowable width of the generated thumbnail maxheight: maximum allowable height of the generated thumbnail | |
| Optional Arguments | onfail: uses URL provided as argument to redirect to in case of thumbnailing failure. | |
| Extra Arguments Ignored | No | |
| Response Format | Depends on the mime-type of the original image | |
| Notes | Supported image formats: PNG, JPG, and GIF. The thumb-nailing service will only process images whose original size is less than 36m pixels. image_thumb is not meant to be a workaround for the raw service. Rules
MODES of operation:
There are two levels of failover for this service now:
|
Examples:
A. Wide Image
1. Original:
http://www.freebase.com/api/trans/raw/guid/9202a8c04000641f800000000514e28e
2. Only maxwidth
http://www.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f800000000514e28e?maxwidth=100
3. maxwidth and maxheight
4. No arguments
http://www.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f800000000514e28e
B. Tall Image
1. Original
http://www.freebase.com/api/trans/raw/guid/9202a8c04000641f8000000004972c6e
2. Only maxwidth
http://www.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f8000000004972c6e?maxwidth=100
3. maxwidth and maxheight
4. No arguments
http://www.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f8000000004972c6e