Example request

GET http://resizor.com/assets/id.format

Parameters

id: The id or name of an uploaded asset
format: format of returned image (jpg, png, gif)
size: description of size/cropping settings for returned image More about this
token: SHA1 digest in hexadecimal form of string "API_KEY-ASSET_ID-SIZE_DESCRIPTION-FORMAT"

Example responses

Status: 301 (redirect to S3)
Status: 200 (raw image data)

Example request

CDN compatible usage

When using Resizor with CloudFront these requests needs to be reformated as CloudFront doesn't
handle query string params. This is what Resizor's ”CDN origin host” is for, only your assets is allowed
to be accessed through your CDN origin host, this makes it safe to use that host as a custom origin for a CloudFront distribution.

The following request:
http://resizor.com/assets/1.jpg?size=c100x100&token=1af23rde0123456cccc78910e02abcd401234567
would need to be transformed into:
http://[your-cdn-origin-host].resizor.com/assets/c100x100/1af23rde0123456cccc78910e02abcd401234567/1.jpg