metercai / SimpleSDXL

Enhanced version of Fooocus for SDXL, more suitable for Chinese and Cloud
GNU General Public License v3.0
583 stars 27 forks source link

[Feature Request]: Only change [output_format] when a preset json contains a [default_output_format] entry #45

Closed steppres closed 3 months ago

steppres commented 4 months ago

Is there an existing issue for this?

What would your feature do?

Image output file format (png, jpeg etc...) defaults to png when changing presets when [defautl_output_format] is missing from a preset package json.

I propose [output_format] only change when [defautl_output_format] is included inside a preset json.

(Apologies for using English to submit this 🙃)

Proposed workflow

  1. Launch SimpleSDXL with "default_output_format": "jpeg" in config.txt
  2. Click preset in topbar
  3. output_format only changes from jpeg if preset contains [defautl_output_format]

Additional information

No response

metercai commented 4 months ago

It will be resolved in the next version