mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2026-09-02 05:50:44 +02:00
Review feedback on #1831: - Remove *.gif from the save/output dialog filter (PR had added it there). Verified empirically that cv2.imread/imwrite cannot decode OR encode GIF on OpenCV 4.10 *or* 4.11 (write raises, read returns None), so GIF silently failed on both ends — dropped from every dialog and from has_image_extension. - has_image_extension now uses os.path.splitext so only the true extension counts ('photo.png.bak' / 'clip.webp.mp4' are no longer treated as images). - Centralize the supported-extension set in modules.globals (IMAGE_EXTENSIONS / VIDEO_EXTENSIONS); file_types, all QFileDialog filters and has_image_extension now derive from it instead of hand-copied lists that had already drifted. WEBP itself is unchanged and works (libwebp ships with opencv-python).