Skip to content

Pictures 2 Panning Videos: Convert a Landscape Image into a Panning Video

License

Notifications You must be signed in to change notification settings

affromero/Photo2Panning

Repository files navigation

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

git clone https://github.com/affromero/Photo2Panning.git
cd Photo2Panning
poetry install

Usage CLI

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

demo_panning.mp4

Example Zooming in and out

Example Zoom

Demo command: poetry run python -m pic2panning.demos.zoom in

demo_zoom.mp4

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License

About

Pictures 2 Panning Videos: Convert a Landscape Image into a Panning Video

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages