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:- Validation - We verify each URL is accessible
- Download - Images are downloaded from your server
- Optimization - Images are resized and compressed
- CDN Hosting - Optimized images are served from our CDN
- Caching - Original URLs are cached for future updates
Submitting Images
Single Listing
Include images in theimages array when upserting:
Bulk Upsert
Same format for bulk operations:Image Requirements
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: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:images array in listing responses contains these CDN URLs, not your original URLs.