Available

Automatic WebP variants and an image CDN with no bandwidth fees

Upload an image once and Nooknear generates four WebP sizes automatically, then serves them from an image CDN. There are no separate egress or bandwidth charges.

Four WebP variants for every upload

When an upload completes, the processing queue runs the image through sharp and produces the variants below. Pick the size your layout needs instead of shipping the full original to a phone.

  • thumb: 150×150 px, cropped to fill (cover), for lists and small previews
  • small: 400 px wide
  • medium: 800 px wide
  • large: 1200 px wide
  • Optional jpeg: longest side up to 2048 px, sRGB, quality 90, for targets that reject WebP (such as the Instagram Graph API)

Get variant URLs from the API

Pass "outputFormats": ["webp","jpeg"] in the upload request to also get a JPEG. Once processing finishes, the variants object in GET /v1/media/:assetId lists each variant’s URL, dimensions and file size. While processing is underway, status is pending or processing and variants is empty.

{
  "assetId": "a1b2c3",
  "status": "ready",
  "resourceType": "product",
  "resourceId": "sku-42",
  "variants": {
    "thumb":  { "url": "https://cdn.nooknear.com/.../thumb.webp?token=...",  "width": 150,  "height": 150, "sizeBytes": 6120,  "mimeType": "image/webp" },
    "large":  { "url": "https://cdn.nooknear.com/.../large.webp?token=...",  "width": 1200, "height": 900, "sizeBytes": 98410, "mimeType": "image/webp" },
    "jpeg":   { "url": "https://cdn.nooknear.com/.../jpeg.jpg?token=...",    "width": 2048, "height": 1536, "sizeBytes": 412300, "mimeType": "image/jpeg" }
  },
  "original": { "url": "...", "sizeBytes": 482113, "mimeType": "image/png" },
  "createdAt": "2026-12-01T10:00:00.000Z"
}

Every variant lives at a predictable path. The trailing token is a per-asset HMAC signature: the URL opens without an API key in browsers, emails or Instagram, but nobody can reach other files without a valid signature. The signature stays valid until the asset is deleted. Delivery runs on a Cloudflare Worker backed by R2.

https://cdn.nooknear.com/{tenantId}/{resourceType}/{resourceId}/{assetId}/{variant}.webp?token=...
https://cdn.nooknear.com/{tenantId}/{resourceType}/{resourceId}/{assetId}/jpeg.jpg?token=...

No bandwidth fees

Images are stored in Cloudflare R2, which has no egress fees, and served through Cloudflare’s CDN. So there is no per-GB bandwidth line on your bill; a fair-use policy applies. See the plans on the pricing page.

Download tokens

Call POST /v1/media/download-token to get a download token for a resource or a single asset. Note: expiresInSeconds is accepted but not enforced today; the token stays valid until the asset is deleted. Truly expiring tokens are on the roadmap.

curl -X POST https://api.nooknear.com/v1/media/download-token \
  -H "X-API-Key: $NOOKNEAR_KEY" -H "Content-Type: application/json" \
  -d '{"assetId":"a1b2c3","expiresInSeconds":3600}'

Frequently asked questions

Can I change the variant sizes?

Variants are fixed today: thumb, small, medium, large and optional JPEG. On-the-fly URL transformations, where you request any size in the URL, are on the roadmap.

Do you output AVIF?

You can upload AVIF files, but output today is WebP and JPEG. AVIF output and automatic format selection per browser are planned.

Are CDN URLs public?

Yes. With its signature, the URL opens without an API key, so you can drop it into an img tag or pass it to social media APIs. Once you delete the asset, the URL stops working.

How long until variants are ready?

Processing runs on a queue and is usually quick, but timing depends on image size and load. Variants are ready to use once status is ready.

Related features