Updated preview file extension to reflect that Civitai is providing jpg image data at this time.

pull/215/head
GreenwichMeantime 2023-07-12 16:12:05 -04:00
parent 920ca3267f
commit 98b4435513
1 changed files with 2 additions and 2 deletions

View File

@ -323,8 +323,8 @@ def get_preview_image_by_model_path(model_path:str, max_size_preview, skip_nsfw_
return
base, ext = os.path.splitext(model_path)
first_preview = base+".png"
sec_preview = base+".preview.png"
first_preview = base+".jpg"
sec_preview = base+".preview.jpg"
info_file = base + suffix + model.info_ext
# check preview image