{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "name": "CDN image optimisation | Edge Docs",
  "headline": "CDN image optimisation | Edge Docs",
  "description": "Use Edge CDN's on-the-fly image optimisation to resize, convert formats, adjust quality, apply effects and generate LQIP placeholders via URL parameters.",
  "url": "https://edge.network/docs/cdn/image-optimization",
  "image": "https://edge.network/og/docs__cdn__image-optimization.png",
  "inLanguage": "en",
  "publisher": {
    "@type": "Organization",
    "name": "Edge Network",
    "url": "https://edge.network",
    "logo": "https://edge.network/favicon.svg"
  },
  "isPartOf": {
    "@type": "WebSite",
    "name": "Edge Network",
    "url": "https://edge.network"
  },
  "breadcrumb": {
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://edge.network"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Docs",
        "item": "https://edge.network/docs"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Cdn",
        "item": "https://edge.network/docs/cdn"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "Image optimization",
        "item": "https://edge.network/docs/cdn/image-optimization"
      }
    ]
  },
  "section": "documentation/cdn",
  "articleBody": "Docs CDN Deployments, domains, caching, purging and on-the-fly image optimisation. Getting started \n Deployments \n Domains & SSL \n Compute Virtual machines in seconds: networking, firewalls, backups and SSH keys. Getting started \n Creating VMs \n Managing VMs \n DNS Zones, records, geo-routing, backups and development domains. Getting started \n Zone management \n DNS records \n Storage S3-compatible buckets, access keys, presigned URLs and multipart uploads. Getting started \n Buckets \n Access keys \n Shield Privacy-first bot protection: widget modes, siteverify and verified agents. Getting started \n Widget modes \n JavaScript API \n Assist AI answers from your own content: widget, ingestion and the API. Getting started \n Widget & embedding \n Content ingestion \n REST API Manage every Edge resource over HTTPS with API keys. Authentication \n Errors \n Versioning \n Compute \n CDN \n DNS \n CLI One binary for macOS, Linux and Windows to script every product. Installation \n Authentication \n Compute commands \n CDN commands \n DNS commands \n Storage commands \n Dev tooling Command palette and keyboard shortcuts across the console. Command palette \n Agent tooling Let AI agents deploy and manage infrastructure: discovery, MCP and access codes. Start with the overview MCP server \n MCP tool reference \n Connect your tool \n Framework wrappers \n Self-signup \n Access codes \n Discovery endpoint \n Deploy a static site \n Deploy an app \n Projects \n Bot protection \n AI answers \n Account & support Teams, security, audit logs, alerts, billing tools and support. Start with the overview Teams \n Referral programme \n Cost Advisor \n Security \n Two-factor auth \n Audit log \n Alerts \n Support tickets \n Search the docs ⌘K Console Products\n\n CDN Overview Getting started Deployments Domains & SSL Configuration Caching Cache purging Image optimisation Watermarking Analytics Viewer geography Compute DNS Storage Shield Assist Developer tools\n\n REST API CLI Dev tooling Agents\n\n Agent tooling Account\n\n Account & support How it works Copy Anchor Link \n\n Image optimisation is built into Edge CDN. Add query parameters to any image URL to transform it on the fly. Transformed images are cached at the edge for instant delivery.\n\n Output Copy Text # Original image \n https://cdn.yoursite.com/images/hero.jpg \n \n # Resized to 800px wide with WebP format \n https://cdn.yoursite.com/images/hero.jpg?width=800&format=webp \n \n # Thumbnail with quality adjustment \n https://cdn.yoursite.com/images/hero.jpg?width=200&height=200&fit=cover&quality=80 Side-by-side comparison of original vs optimised image with file size reduction Transformation parameters Copy Anchor Link \n\n Resize Copy Anchor Link \n\n Parameter Description Example width Target width in pixels width=800 height Target height in pixels height=600 fit How to fit: cover , contain , fill , inside , outside fit=cover Format conversion Copy Anchor Link \n\n Parameter Description Example format Output format: auto , webp , avif , jpeg , png format=webp Available formats Copy Anchor Link \n\n auto : automatically selects the best format based on browser support (AVIF → WebP → JPEG)\n avif : best compression, smallest files, supported by modern browsers\n webp : great compression with wide browser support\n jpeg : universal compatibility, good for photos\n png : lossless, supports transparency\n Tip\n\n Use format=auto . The auto format inspects the browser&#x27;s Accept header and serves AVIF to browsers that support it, WebP to those that don&#x27;t, and JPEG as a fallback. This ensures the smallest possible file size for each visitor.\n\n Quality Copy Anchor Link \n\n Parameter Description Example quality Compression quality 1–100 (default: 80) quality=75 Effects Copy Anchor Link \n\n Parameter Description Example blur Gaussian blur amount (0.3–1000) blur=10 sharpen Sharpen the image sharpen=true grayscale Convert to greyscale grayscale=true Low-quality image placeholders (LQIP) Copy Anchor Link \n\n Generate tiny placeholder images for lazy loading. Show a blurred preview while the full image loads.\n\n Parameter Description Example lqip=1 Returns a tiny (~20px wide) blurred image ?lqip=1 lqip=base64 Returns a base64-encoded data URL (embed directly in HTML) ?lqip=base64 lqip=blurhash Returns a BlurHash string (4–5 bytes, decode client-side) ?lqip=blurhash Output Copy Text # Tiny blurred placeholder (raw image) \n https://cdn.yoursite.com/hero.jpg?lqip=1 \n \n # Base64 data URL (embed in src attribute) \n https://cdn.yoursite.com/hero.jpg?lqip=base64 \n \n # BlurHash (returns JSON with hash, width, height) \n https://cdn.yoursite.com/hero.jpg?lqip=blurhash \n # → {\"blurhash\": \"LEHV6nWB2yk8pyo0adR*.7kCMdnj\", \"width\": 4, \"height\": 3} Animated GIF support Copy Anchor Link \n\n Animated GIFs are processed with ImageMagick to preserve all animation frames. You can resize and convert animated GIFs without losing the animation.\n\n Operation Supported Notes Resize ✓ All frames are resized, animation preserved Convert to WebP ✓ Animated WebP output, often smaller than GIF Convert to PNG ✓ Animated PNG (APNG) output Quality adjustment N/A GIF is lossless, so the quality parameter is ignored for GIF output Output Copy Text # Resize animated GIF to 400px wide \n https://cdn.yoursite.com/animation.gif?width=400 \n \n # Convert animated GIF to WebP (smaller file, keeps animation) \n https://cdn.yoursite.com/animation.gif?width=400&format=webp Common use cases Copy Anchor Link \n\n Responsive images Copy Anchor Link \n\n Generate multiple sizes for srcset :\n\n HTML Copy Text < img \n src =\" https://cdn.yoursite.com/hero.jpg?width=1200&format=webp \" \n srcset =\" \n https://cdn.yoursite.com/hero.jpg?width=400&format=webp 400w, \n https://cdn.yoursite.com/hero.jpg?width=800&format=webp 800w, \n https://cdn.yoursite.com/hero.jpg?width=1200&format=webp 1200w \n \" \n sizes =\" (max-width: 600px) 400px, (max-width: 1000px) 800px, 1200px \" \n /> Thumbnail grid Copy Anchor Link \n\n Create consistent thumbnails:\n\n Output Copy Text https://cdn.yoursite.com/product-1.jpg?width=300&height=300&fit=cover&format=webp Blur placeholder (LQIP) Copy Anchor Link \n\n Generate a tiny blurred placeholder for lazy loading:\n\n Output Copy Text https://cdn.yoursite.com/hero.jpg?width=20&blur=10&quality=30 Supported formats Copy Anchor Link \n\n Format Support JPEG Input and output PNG Input and output WebP Input and output AVIF Input and output GIF Input only SVG Passed through Default settings Copy Anchor Link \n\n Configure default image optimisation settings in the Configuration tab:\n\n Default format: set to auto to serve AVIF/WebP/JPEG based on browser support\n Default quality: set a global quality (1–100) applied when no URL parameter is specified\n Path rules: override quality/format for specific paths, such as thumbnails\n Performance Copy Anchor Link \n\n Image transformations happen at the edge and are cached after the first request:\n\n <100ms: first transformation\n <10ms: cached delivery\n ~70%: average size reduction\n Next steps\n\n Watermarking\n\n Overlay your logo on served images\n\n Caching\n\n Learn about cache behaviour\n\n Analytics\n\n Monitor image delivery stats\n\n Something unclear or out of date? Tell us , or read this page as Markdown .\n\n Cache purging\n\n Previous\n\n Watermarking\n\n Next",
  "headings": [
    {
      "level": 1,
      "text": "On-the-fly image processing"
    },
    {
      "level": 2,
      "text": "Next steps"
    },
    {
      "level": 3,
      "text": "Watermarking"
    },
    {
      "level": 3,
      "text": "Caching"
    },
    {
      "level": 3,
      "text": "Analytics"
    }
  ],
  "relatedLinks": [
    {
      "@type": "WebPage",
      "name": "Network",
      "url": "https://edge.network/network"
    },
    {
      "@type": "WebPage",
      "name": "Pricing",
      "url": "https://edge.network/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Docs",
      "url": "https://edge.network/docs"
    },
    {
      "@type": "WebPage",
      "name": "Sign in",
      "url": "https://edge.network/console/access"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/cdn/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Deployments",
      "url": "https://edge.network/docs/cdn/deployments"
    },
    {
      "@type": "WebPage",
      "name": "Domains &amp; SSL",
      "url": "https://edge.network/docs/cdn/domains"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/compute/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Creating VMs",
      "url": "https://edge.network/docs/compute/creating-vms"
    },
    {
      "@type": "WebPage",
      "name": "Managing VMs",
      "url": "https://edge.network/docs/compute/managing-vms"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/dns/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Zone management",
      "url": "https://edge.network/docs/dns/zones"
    },
    {
      "@type": "WebPage",
      "name": "DNS records",
      "url": "https://edge.network/docs/dns/records"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/storage/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Buckets",
      "url": "https://edge.network/docs/storage/buckets"
    },
    {
      "@type": "WebPage",
      "name": "Access keys",
      "url": "https://edge.network/docs/storage/access-keys"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/shield/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Widget modes",
      "url": "https://edge.network/docs/shield/widget-modes"
    },
    {
      "@type": "WebPage",
      "name": "JavaScript API",
      "url": "https://edge.network/docs/shield/js-api"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/assist/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Widget &amp; embedding",
      "url": "https://edge.network/docs/assist/widget"
    },
    {
      "@type": "WebPage",
      "name": "Content ingestion",
      "url": "https://edge.network/docs/assist/ingestion"
    },
    {
      "@type": "WebPage",
      "name": "Authentication",
      "url": "https://edge.network/docs/api/authentication"
    },
    {
      "@type": "WebPage",
      "name": "Errors",
      "url": "https://edge.network/docs/api/errors"
    },
    {
      "@type": "WebPage",
      "name": "Versioning",
      "url": "https://edge.network/docs/api/versioning"
    },
    {
      "@type": "WebPage",
      "name": "Compute",
      "url": "https://edge.network/docs/api/compute"
    },
    {
      "@type": "WebPage",
      "name": "CDN",
      "url": "https://edge.network/docs/api/cdn"
    },
    {
      "@type": "WebPage",
      "name": "DNS",
      "url": "https://edge.network/docs/api/dns"
    },
    {
      "@type": "WebPage",
      "name": "Installation",
      "url": "https://edge.network/docs/cli/installation"
    },
    {
      "@type": "WebPage",
      "name": "Authentication",
      "url": "https://edge.network/docs/cli/authentication"
    }
  ],
  "alternateFormats": [
    {
      "@type": "MediaObject",
      "contentType": "text/html",
      "url": "https://edge.network/docs/cdn/image-optimization",
      "name": "HTML version"
    }
  ],
  "dateModified": "2026-11-23T08:56:45.484Z"
}