Commit a7c83659 authored by kurumuz's avatar kurumuz

fix

parent 5ce9a54c
......@@ -157,7 +157,7 @@ def sanitize_stable_diffusion(request, config):
#image is valid, load it again(still check again, verify() can't be sure as it doesn't decode.)
try:
image = Image.open(BytesIO(image))
#image = Image.open(BytesIO(image))
#image = image.convert('RGB')
image = image.resize((request.width//request.downsampling_factor, request.height//request.downsampling_factor), resample=Image.Resampling.LANCZOS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment