zixaphir / Stable-Diffusion-Webui-Civitai-Helper

Stable Diffusion Webui Extension for Civitai, to manage your model much more easily.
175 stars 24 forks source link

[BUG] Extension downloads unusable video preview when scanning #53

Closed Chloeana closed 7 months ago

Chloeana commented 7 months ago

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

File was forced to .png by the script image

Does not open because it is not an image image

Changed from .png to .mp4 image

Movie starts (proves it's a valid file) image

Console log's msg or screenshot for function issue

image

zixaphir commented 7 months ago

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.