sd-civitai-browser-plus icon indicating copy to clipboard operation
sd-civitai-browser-plus copied to clipboard

[Bug]: Images are limited to 10

Open Taithrah opened this issue 6 months ago • 0 comments

Describe the bug.

When searching and selecting a model. It will only display a list of 10 images.

When clicking "Save Images" or "Automatically save all images" It will only save 10 images.

If you look at https://civitai.com/api/v1/models/616923 you will see 16 images. However the browser stops after 10. This is consistent with every model I have tried.

Steps to reproduce the problem.

  1. Set API Key
  2. Check NSFW Content
  3. Search and select model
  4. Click Save Images

Expected behavior

All sample images should be downloaded.

System info

  • Extension version: 0b97a482
  • OS: Windows 11 x64
  • SD-WebUI version: v1.10.1-4-g48239090
  • Python: 3.11.9

Additional information

I have also noticed downloaded images are jpg, however if you look at the file headers they are png

If I go to the following: https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/d333905b-1493-46b6-8024-2fe67e322807/22393429.jpeg Looking at the response headers it shows content-type: image/png

you can probably leverage import filetype to determine the correct filetype.

I noticed when the extension downloads .preview.png it has a width of 800, but civitai reports it having a max size of 768.

Taithrah avatar Aug 06 '24 05:08 Taithrah