A tool to quickly create a preview image of a dark and light mode project.
- Upload two images for comparison
- Interactive split-view with adjustable direction (vertical/horizontal)
- Customizable split position using sliders
- Export merged image
- Keyboard shortcut to toggle dashboard visibility
- Responsive design with a blurred gradient background
- React
- Vite
- UnoCSS
- Framer Motion
- React Icons
- Node.js (v20 or later recommended)
- pnpm
-
Clone the repository:
git clone https://github.com/your-username/awesome-merge-picture.git cd awesome-merge-picture
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm run dev
-
Open your browser 和 visit
http://localhost:5173
to see the application.
- Click the upload button to select two images.
- Use the sliders to adjust the split position.
- Toggle between vertical 和 horizontal split directions.
- Press the spacebar to hide/show the dashboard.
- Click the export button to download the merged image.
To create a production build, run:
pnpm run build
The built files will be in the dist
directory.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source 和 available under the MIT License.