# Deliver Photos Globally with AI Optimization

> Manage and deliver images at 300+ edge locations with automatic optimization, format conversion, and responsive sizing. AI-powered tagging, facial recognition, and content moderation. Serve billions of images with <50ms latency worldwide and automatic WebP/AVIF conversion.

Canonical: https://photos.do/

## In code

```ts
import { Photos } from 'photos.do'

// AI-powered photo management at the edge
on.Image.uploaded(async $ => {
  // AI analyzes content automatically
  const analysis = await $.AI.analyze.Image({
    url: $.url,
    features: ['objects', 'faces', 'text', 'quality']
  })

  // Generate optimized variants
  const variants = await Photos.generate.Variants({
    source: $.url,
    sizes: [1920, 1280, 640, 320],
    formats: ['webp', 'avif', 'jpeg']
  })

  $.Photos.update.Metadata({ id: $.id, tags: analysis.tags, variants })
})
```

## Frequently asked questions

### How does photos.do optimize and deliver images globally?

Photos.do automatically optimizes images at upload time with format conversion (WebP, AVIF, JPEG), responsive sizing, and quality optimization. Images are distributed across 300+ edge locations with intelligent caching based on access patterns. Serves optimal format and size based on user's device, connection speed, and browser capabilities. Automatic lazy loading, progressive JPEGs, and blur placeholders. All images include automatic compression with quality preservation using AI. Bandwidth savings of 60-80% compared to unoptimized images.

### What AI-powered features are included?

AI automatically tags images with objects, scenes, colors, and concepts. Facial recognition identifies people with privacy controls. Text extraction from images (OCR) for searchability. Content moderation detects unsafe, inappropriate, or policy-violating content. Image quality assessment and automatic enhancement. Smart cropping focuses on important areas. Background removal and object isolation. Duplicate detection across billions of images. Natural language search—find images by describing what you're looking for.

### How does content moderation and safety work?

AI continuously scans uploaded images for unsafe, explicit, violent, or policy-violating content. Multi-level moderation with confidence scores and human review workflows for borderline cases. Automatic quarantine of flagged content with notification to moderators. Customizable content policies and sensitivity thresholds. Age-appropriate filtering and parental controls. CSAM detection with law enforcement reporting. Full audit logs of all moderation decisions. Appeal process for false positives.

### What about storage costs and bandwidth pricing?

Storage costs $0.15/GB/month for original images with automatic compression. Bandwidth is $0.01/GB for edge cache hits (99%+ of requests), $0.09/GB for origin transfers. Optimized variants don't count against storage—only originals. First 10GB storage and 100GB bandwidth are free monthly. Enterprise customers get volume discounts and reserved capacity pricing. No egress fees between .do services.

### Can photos.do handle user-generated content at scale?

Yes. Architected for consumer-scale with support for billions of images and petabytes of storage. Handle millions of uploads per day with automatic sharding and load balancing. Direct browser uploads to edge locations without routing through your servers. Progress tracking, pause/resume, and multi-part uploads for large files. Automatic virus scanning and malware detection. Rate limiting and abuse prevention. GDPR-compliant data deletion and right-to-be-forgotten workflows.

## Part of Platform.do

photos.do is one of the primitives of Platform.do. Every .do shares one grammar, Business-as-Code, and one SDK.

- What is Business-as-Code? https://platform.do/business-as-code
- Platform.do: https://platform.do/
- Docs: https://docs.platform.do
