butaixianran / Stable-Diffusion-Webui-Civitai-Helper

Stable Diffusion Webui Extension for Civitai, to manage your model much more easily.
2.37k stars 286 forks source link

(Feature Request) Solve the problem with animated previews when scanning models from Civitai #267

Closed ostap667inbox closed 6 months ago

ostap667inbox commented 6 months ago

Often the preview for a model is in animation format. In this case, Civitai Helper performs an incorrect action: it saves the animation file with the PNG extension. In general, there is no point in saving animations as previews, they can't be displayed in Automatic1111 anyway.

My suggestion, if there is a way to do this: before saving a preview image for a model, do a check to see if it is a video file. If it is a video file, try to take another image as a preview.

Here is an example of such models. This user has a lot of LoRa with slider function and he makes first preview images animated: https://civitai.com/user/ntc/models

butaixianran commented 6 months ago

Well, I was waiting for SD webui to support display video as preview. Seems they won't do that.

I'll see what I can do.

butaixianran commented 6 months ago

Ok, its done. Update your extension and restart the whole sd webui, not just the "Restart UI".

ostap667inbox commented 6 months ago

Thanks! Now the model list looks great and no need to search for problematic previews and replace each one manually.