Image processing, AI analysis, galleries, and media library features.
Media library
The CMS admin includes a full media library with:
- Upload — drag & drop or file picker
- Organization — folders, tags, search
- Processing — automatic WebP conversion, responsive variants
- AI analysis — auto-generated captions, alt text, and tags
Image processing
Uploaded images are automatically:
- Converted to WebP for optimal file size
- Resized to responsive variants (e.g., 400w, 800w, 1200w)
- EXIF data extracted (camera, lens, GPS, etc.)
- AI-analyzed for captions and alt text
AI image analysis
When you upload an image, the AI analyzes it to generate:
- Caption — descriptive text for context
- Alt text — accessibility description for screen readers and SEO
- Tags — auto-generated tags for organization
You can also batch-analyze existing images from the media library.
Using images in content
Image field
{ name: 'heroImage', type: 'image' }Image gallery
{ name: 'photos', type: 'image-gallery' }Gallery values must be { url, alt }[] objects:
"photos": [
{ "url": "/uploads/photo-1.webp", "alt": "Description" },
{ "url": "/uploads/photo-2.webp", "alt": "Another photo" }
]Rendering images in Next.js
import Image from 'next/image';
function HeroImage({ src, alt }: { src: string; alt: string }) {
return (
<Image
src={src}
alt={alt}
width={1200}
height={630}
priority
/>
);
}