If the model/lora has an animated image as the first image on civitai then it shows up as blank in the preview. It looks like it may be forcing the extension to .png no matter what the media file is. Which is fine for jpegs, but for mp4s it does not work that way.
SD Webui only supports PNG, JPEG, and WEBP file formats as preview images. The fact that the extension is trying to download a video file to use as a preview at all is a bug. I'll get that fixed soon.
Describe Issue
If the model/lora has an animated image as the first image on civitai then it shows up as blank in the preview. It looks like it may be forcing the extension to
.png
no matter what the media file is. Which is fine for jpegs, but for mp4s it does not work that way.Example: LORA with animated image (it's an mp4): https://civitai.com/models/144203 Pull it in, then scan and refresh.
Screenshot for UI issue
Shows as blank![image](https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper/assets/135464448/a15eeec4-5d5f-462e-b9e1-28f1a0ce4d40)
File was forced to .png by the script![image](https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper/assets/135464448/dbdaa9b4-5e9f-4e2d-9130-0fcf4f24f1ee)
Does not open because it is not an image![image](https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper/assets/135464448/69c7d2ec-4198-4e0a-a750-d62d5498961a)
Changed from .png to .mp4![image](https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper/assets/135464448/3d29da6e-826d-44b7-bfdd-e34929965835)
Movie starts (proves it's a valid file)![image](https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper/assets/135464448/05cbe0f3-8cd8-48a6-b9fa-a687d0c4e2ce)
Console log's msg or screenshot for function issue