https://github.com/affromero/photo2panning
Pictures 2 Panning Videos: Convert a Landscape Image into a Panning Video
https://github.com/affromero/photo2panning
Last synced: about 1 month ago
JSON representation
Pictures 2 Panning Videos: Convert a Landscape Image into a Panning Video
- Host: GitHub
- URL: https://github.com/affromero/photo2panning
- Owner: affromero
- License: mit
- Created: 2024-11-03T15:58:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T16:01:05.000Z (6 months ago)
- Last Synced: 2025-02-09T02:12:23.600Z (3 months ago)
- Language: Python
- Size: 142 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Pictures 2 Panning Videos: Convert a Landscape Image into a Panning Video
This project allows you to convert a landscape image into a panning video. The output video is in 16:9 format, which is useful for Instagram stories, TikTok, and other social media platforms that support videos in this format.
## Features
- Convert a landscape image into a panning video
- Easy to use
- High-quality output
- Customizable output size, frame rate, and movement direction
- Add audio to the output video
- Support for multiple images
- Support for multiple audio formats
- Support for multiple movement directions## Installation
```bash
git clone https://github.com/affromero/Photo2Panning.git
cd Photo2Panning
poetry install
```## Usage CLI
```bash
poetry run python -m pic2panning.main --images https://images.pexels.com/photos/3125171/pexels-photo-3125171.jpeg --output_file output.mp4 --time 5 --ratio 16:9 --audio.files https://www.youtube.com/watch?v=dQw4w9WgXcQ --output_size 1080 1920 --fps 240 --movement panning-lr
```## Demos
### Example Panning from left to right
Demo command: `poetry run python -m pic2panning.demos.panning lr`
https://github.com/user-attachments/assets/c15d7058-7fe2-4b23-a109-6074f607784b
### Example Zooming in and out
Demo command: `poetry run python -m pic2panning.demos.zoom in`
https://github.com/user-attachments/assets/087623cb-1381-4924-876e-0637c264f78e
## Contributing
Contributions are welcome! Please open an issue or submit a pull request.
## License
This project is licensed under the MIT License