Skip to main content

Image Handling

Okasie automatically mirrors and optimizes images from your servers to ensure fast loading and consistent display across the platform.

How It Works

When you submit a listing with image URLs:
  1. Validation - We verify each URL is accessible
  2. Download - Images are downloaded from your server
  3. Optimization - Images are resized and compressed
  4. CDN Hosting - Optimized images are served from our CDN
  5. Caching - Original URLs are cached for future updates

Submitting Images

Single Listing

Include images in the images array when upserting:

Bulk Upsert

Same format for bulk operations:

Image Requirements

Images behind authentication or requiring cookies will fail to download. Ensure your image URLs are publicly accessible.

Image Processing

Automatic Optimization

Okasie automatically:
  • Resizes to multiple dimensions (thumbnail, preview, full)
  • Compresses using modern codecs (WebP, AVIF)
  • Strips metadata for privacy
  • Generates placeholders for lazy loading

Generated Sizes

Image Order

The first image in your array becomes the primary/cover image:
Use your best exterior shot as the first image - it’s displayed in search results and listing previews.

Updating Images

Full Replacement

Send the complete new image array to replace all images:

Adding Images

Include all existing images plus new ones:

Reordering Images

Simply send the images in the new desired order:

Caching Behavior

URL-Based Caching

Okasie caches images by URL. If you update an image on your server without changing the URL, add a cache-busting parameter:

CDN Cache Duration

Error Handling

Common Image Errors

Partial Success

Image processing doesn’t block listing creation. If some images fail:

Best Practices

Consistent Naming

Use consistent, descriptive filenames that help with debugging

HTTPS Only

Always use HTTPS URLs for security

Stable URLs

Keep image URLs stable; avoid temporary signed URLs

Pre-optimize

Compress images before sending to reduce processing time

CDN URLs

After processing, images are available at:
The images array in listing responses contains these CDN URLs, not your original URLs.