PlacePix Self-Hosted Placeholder Image Service
Self-hosted placeholder image service. Drop images into folders, get instant URLs with resizing, filters, and text overlays.
724 images across 20 categories
One-Line Docker Deploy
Get PlacePix running in seconds with a single Docker command. No configuration needed.
docker run -d -p 3000:3000 -v ./images:/app/images riadvice/placepix:latest
Features:
- Smart Scan + S3 Support
- Color extraction
- Zero Configuration
- Embedded URL Builder
Smart Crop
Intelligent face-aware cropping. PlacePix detects faces and centers them in the crop area automatically.
Face Detection
?fit=smart
Standard Center Crop
?fit=crop
Cover Fill
?fit=cover
Aspect Ratios
Pick from common aspect ratios and let PlacePix compute the exact dimensions.
16:9 Widescreen
/ratio/16:9/400
1:1 Square
/ratio/1:1/400
9:16 Portrait
/ratio/9:16/400
Overlays
Add custom text labels and watermarks directly onto your images.
Text Label
?text=Hello+World
Border
?border=4,ffffff
Watermark
?watermark=1
Presets
One-click preset dimensions for popular social and screen sizes.
Square · Portrait · Story
Instagram Square
/preset/instagram-square
Instagram Portrait
/preset/instagram-portrait
Instagram Story
/preset/instagram-story
YouTube
Thumbnail · Channel art
YouTube Thumbnail
/preset/youtube-thumbnail
YouTube Banner
/preset/youtube-banner
Cover
Facebook Cover
/preset/facebook-cover
Shared Link Preview
/ratio/16:9/720
X
Header
Header
/preset/twitter-header
Link Preview
/ratio/16:9/720
Post
LinkedIn Post
/preset/linkedin-post
Shared Preview
/ratio/16:9/720
TikTok
Vertical video
TikTok Video (9:16)
/preset/tiktok-video
Square Cut
/ratio/1:1/1080
Screens
Mobile · Tablet · Desktop · 4K
Mobile
/preset/mobile
Tablet
/preset/tablet
Desktop
/preset/desktop
4K
/preset/4k
Categories
Click any size to get a random image from that category
Random Image Generator
Grab any size from any category — or let PlacePix pick one for you.
SVG Placeholder Generator
Zero-processing wireframe placeholders. Perfect for layouts and mockups.
/svg/400/300?bg=e7e5e4&fg=78716c
/svg/400/300?bg=1c1917&fg=0ea5e9&text=Hero
/svg/400/300?bg=0ea5e9&fg=ffffff&text=CTA
Parameters:
bg — background hex colorfg — text hex colortext — custom label (default: width×height)Gradient Placeholder Generator
Generate linear or radial gradient images on the fly. Perfect for backgrounds and overlays.
Linear Gradient
/gradient/400/300/3b82f6/10b981
45° Angle
?angle=45
Radial Gradient
?gradient_type=radial
Parameters:
/gradient/{w}/{h}/{from}/{to} — gradient endpoint?angle=45 — linear angle (0-360)?gradient_type=radial — radial from centerFilters & Effects
Apply filters and color adjustments to any image on the fly.
Sepia Tone
?sepia=1
Sky Tint
?tint=0ea5e9
Brighten & Contrast
?brightness=1.3&contrast=1.2
High Saturation
?saturation=2.0
Grayscale
?grayscale=1
Dramatic Red
?tint=e11d48&brightness=0.8&contrast=1.3
Invert Colors
?invert=true
Posterize
?posterize=4
Sharpen
?sharpen=1.5
Emboss
?emboss=true
Vignette
?vignette=0.5
Color Parameters:
?tint=d97706 — hex color overlay?brightness=1.3 — 0.0 to 2.0?contrast=1.2 — 0.0 to 2.0?saturation=2.0 — 0.0 to 2.0?sepia=1 — warm sepia tone?grayscale=1 — black & white?invert=true — invert colors?posterize=4 — color levels (1-8)?solarize=128 — threshold (0-255)?duotone=ff0000,0000ff — two-color mapEffect Parameters:
?sharpen=1.5 — sharpen amount?emboss=true — 3D relief effect?halftone=4 — dot pattern?edges=sobel — edge detection?edges=canny — Canny edges?oil_painting=true — oil painting style?pencil_sketch=true — pencil sketch?cartoon=true — cartoon effect?vignette=0.5 — darken edges (0-1)Search by Dominant Color
Find images that match your brand palette. Every image is scanned for its top 3 dominant colors.
How it works:
/color/{hex}/{w}/{h} — dedicated color route?color=d97706 — filter any endpoint by color/api/color/{hex} — list all matching images/api/info/id/1 — includes colors: [...]API Reference
All endpoints support CORS and return images with long-term cache headers.
/{width}/{height}/{category}
Random image from a category
/{width}/{height}
Random image from all categories
/health
Health check (liveness probe for Docker/K8s)
/ready
Readiness check (returns 503 until images loaded)
Query Parameters
?grayscale=1Grayscale?blur=2Gaussian blur (1-10)?seed=abcDeterministic image?text=HelloText overlay?fit=cropResize mode?base64=1Return base64 JSON (max 256px).avifAVIF output (smaller).webpWebP output.pngPNG output (lossless)Figma Integration
Embed live PlacePix images directly in your Figma designs using iframe embeds.
Paste this iframe code into Figma as an embedded URL:
<iframe src="https://your-placepix-instance.com/800/600/nature?seed=figma" width="800" height="600" frameborder="0"></iframe>
Replace your-placepix-instance.com with your actual PlacePix URL.
Tips:
?seed=xyz for consistent images?grayscale=1 for wireframe mode/gradient/ for placeholder backgrounds