Next.js Image Gallery Demo

Comparing different image loading strategies with blur placeholders

Technical Implementation

Scenario 1: External Blur URLs (Custom Next.js)

This uses a modified version of Next.js that allows blurDataURL to accept external URLs instead of only Data URLs.

<Image src="https://cdn.example.com/1200w/image.jpg" placeholder="blur" blurDataURL="https://cdn.example.com/10w/image.jpg" />

Scenario 2: No Placeholders (Standard Next.js)

Standard Next.js Image component without any blur placeholder configuration.

<Image src="https://cdn.example.com/1200w/image.jpg" />

Scenario 3: Local Images (Standard Next.js)

Images stored in the repository. Next.js automatically generates blur placeholders at build time.

<Image src="/images/local-image.jpg" placeholder="blur" />