A React web app for generating custom placeholder images with specific dimensions.
Live Demo: https://placeholder-design.netlify.app/
- Custom width and height (1-4096px)
- Preset sizes for common use cases (HD, Instagram, Twitter, YouTube, etc.)
- Pattern backgrounds (solid, gradient, radial, stripes, dots, grid, noise)
- Customizable colors
- Border radius and border width controls
- Aspect ratio lock
- Optional custom text overlay
- Export as PNG, JPG, or SVG
- Batch download multiple sizes at once
- Copy image or data URL to clipboard
- Node.js 18+ installed
- npm or yarn
git clone https://github.com/Abdo-codes/placeholder.git
cd placeholder
npm install
npm run devOpen http://localhost:5173 in your browser.
npm run buildThis creates a dist folder with static files ready for deployment.
npm run previewnpm install -g vercel
vercel- Push to GitHub
- Connect repo in Netlify dashboard
- Set build command:
npm run build - Set publish directory:
dist
npm run buildThen push the dist folder to gh-pages branch or configure GitHub Actions.
- React 18
- Vite
- Canvas API