Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def combine_audio_video(video_path, audio_path, output_path):
|
|
85 |
def is_image_url(url):
|
86 |
parsed = urlparse(url)
|
87 |
path = parsed.path.lower()
|
88 |
-
return path.endswith(('.png', '.jpg', '.jpeg', '.gif', '.bmp'))
|
89 |
|
90 |
def create_video_from_image(image_url, output_path, duration=10):
|
91 |
# Download the image
|
|
|
85 |
def is_image_url(url):
|
86 |
parsed = urlparse(url)
|
87 |
path = parsed.path.lower()
|
88 |
+
return path.endswith(('.png', '.jpg', '.jpeg', '.gif', '.bmp', '.tiff', '.webp', '.heic', '.svg', '.ico'))
|
89 |
|
90 |
def create_video_from_image(image_url, output_path, duration=10):
|
91 |
# Download the image
|