Skip to Content

Image Optimization

Transform any image into lightning-fast AVIF files with smart placeholders, responsive delivery, and global CDN distribution.

Welcome to RIXL Image Optimization — automated image processing that converts raw images into ultra-efficient AVIF and WebP files with smart placeholders, responsive sizing, and global CDN delivery.

Quick Actions

How RIXL Optimizes Images

Upload Any Standard Format

Upload JPEG, PNG, WebP, GIF, or SVG files up to 100MB through the dashboard or direct API.

Automatic Modern Format Conversion

Raster images are encoded into AVIF and WebP for optimal compression without visible fidelity loss.

Smart Blur Placeholders

Instant thumbhash placeholders prevent layout shifts while high-resolution assets load.

Global CDN Delivery

Optimized assets are cached across global edge locations for instant delivery.

Image Optimization Features

Modern Formats

Up to 50% smaller payloads than traditional JPEG with automatic format negotiation.

Smart Placeholders

Instant lightweight placeholders eliminate layout shifts during page loading.

Responsive Variants

Deliver appropriately scaled renditions for phones, tablets, and desktop displays.

Vector Preservation

SVG vectors are preserved intact for lossless scaling at any resolution.

Metadata Sanitization

Unnecessary EXIF metadata is stripped to protect user privacy and reduce payload size.

Global Edge Network

Assets cached close to your users worldwide for minimal latency.

Implementation Examples

React Component

import {Image} from "@rixl/media-react";

export function ProfileHeader({imageId}) {
  return <Image id={imageId} className="w-full h-64 object-cover rounded-xl" alt="Profile banner" />;
}

Direct API Ingestion

// Step 1: Initialize image upload
const initResponse = await fetch(`https://api.rixl.com/media/v1/projects/${projectId}/images/upload`, {
  method: "POST",
  headers: {
    "X-API-Key": apiKey,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({name: imageFile.name}),
});

const {image_id, image_upload_url} = await initResponse.json();

// Step 2: Upload raw image binary
await fetch(image_upload_url, {
  method: "PUT",
  headers: {"Content-Type": imageFile.type || "image/jpeg"},
  body: imageFile,
});

console.log("Image uploaded successfully:", image_id);

Next Steps