An open API service indexing awesome lists of open source software.

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

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

Example Panning

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

Example Zoom

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