|
|
CommonImage
Common Structure
Image URL
Several API methods return elements containing image URLs. URLs to images on Lingr have the following general format:
http://images.lingr.com/[object_type]/[object_id]/[image_size].gif
The following definitions apply to the bracketed elements:
object_type
- The type of object that the image represents. Legal values are user and room.
object_id
- The unique id of the object that the image represents.
image_size
- The width and height of the image, in pixels, expressed like 32x32, or 16x16. The legal values of image_size are determined by the value of object_type, as follows:
object_type:user
- Legal values for image_size are 80x80, 48x48, and 26x26.
object_type:room
- Legal values for image_size are 48x48, 32x32, and 16x16.
So, for example, some legal Lingr image URLs might be:
http://images.lingr.com/user/93058vHG4rT/80x80.gif http://images.lingr.com/room/987Htfed3dK/16x16.gif
while the following URL would not resolve:
http://images.lingr.com/user/93058vHG4rT/32x32.gif
