Live Demo: https://fekig212.pythonanywhere.com/
Carousel Studio is a local-first, privacy-focused web application designed to create seamless Instagram swipeable panoramas. It allows users to stitch multiple images together, edit them, reorder them, and automatically slice them into perfectly sized 4:5 portrait slides (1080x1350) for Instagram.
- Frontend: HTML5, JavaScript (Vanilla), Tailwind CSS (via CDN).
- Backend: Python (Flask) - Used primarily for serving the application locally.
- Key Libraries:
Cropper.js: For image manipulation.Sortable.js: For drag-and-drop reordering.JSZip&FileSaver.js: For zipping and downloading files.heic2any: For iOS image compatibility.Lucide: For iconography.
- Seamless Stitching: Automatically joins multiple photos into one continuous canvas.
- Smart Slicing: Automatically cuts the stitched panorama into 1080x1350 (4:5 aspect ratio) segments optimized for Instagram Portrait mode.
- Privacy First: All image processing happens client-side in the browser. No images are ever uploaded to a server.
- Interactive Workspace:
- Drag & Drop: Reorder images easily using a sortable interface.
- Image Editing: Built-in cropping and rotation tools (powered by
Cropper.js). - Zoom Controls: Adjust the workspace view.
- Format Support:
- Supports JPG, PNG.
- HEIC Support: Automatically converts Apple's HEIC format to JPG using
heic2any.
- Cross-Platform Export:
- Desktop: Downloads slices as a
.zipfile. - Mobile (iOS/Android): Uses the native Web Share API to share directly to Instagram or save to Photos.
- Desktop: Downloads slices as a
- Responsive UI: Modern Dark Mode interface built with Tailwind CSS.
To run this project locally, you need:
- Python 3.x installed on your system.
- Flask library.
- Clone or Download this repository.
- Ensure the file structure is as follows:
/project-folder ├── flask_app.py └── index.html - Install Flask (if you haven't already):
pip install flask
- Run the Application:
Open your terminal/command prompt in the project folder and run:
python flask_app.py
- Access the App:
Open your web browser and navigate to:
http://127.0.0.1:5000orhttp://localhost:5000
- Upload: Click the "Select Photos" button or drag and drop images onto the drop zone.
- Arrange: Drag the slides left or right to change their order.
- Edit: Click/Tap on any specific image to open the crop/rotate editor.
- Preview: Use the zoom slider at the top to inspect the seamless transitions.
- Export: Click the Share/Download button in the top right.
- On Desktop, this will download a
carousel_images.zip. - On Mobile, this will open the native sharing menu.
- On Desktop, this will download a
