The API in summary

The full syntax of the tinySrc API is as follows:

http://i.tinysrc.mobi[/family][/format][/width[/height]]/url

  • family (optional). This is an alias for device screen size as detailed in the family table. Remove this altogether for the preferable adaptive sizing
  • format (optional). This is either jpeg or png
  • width (optional). This is a width in pixels (which overrides the adaptive- or family-sizing). If prefixed with ‘-’ or ‘x’, it will subtract from, or shrink to a percentage of, the determined size.
  • height (optional). This is a height in pixels, if width is also present. It also overrides adaptive- or family-sizing and can be prefixed with ‘-’ or ‘x’.
  • url (required). This is the absolute path of the original image. It must start with http://