mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
parent
b94cd6754e
commit
c423d51a83
@ -139,7 +139,7 @@ def get_image_cache(path):
|
|||||||
old_p.rename(p)
|
old_p.rename(p)
|
||||||
|
|
||||||
output_file = p
|
output_file = p
|
||||||
img.convert('RGB').save(output_file, format='PNG')
|
img.convert('RGBA').save(output_file, format='PNG')
|
||||||
image_cache[path] = [mtime, output_file.as_posix()]
|
image_cache[path] = [mtime, output_file.as_posix()]
|
||||||
|
|
||||||
return image_cache[path][1]
|
return image_cache[path][1]
|
||||||
|
Loading…
Reference in New Issue
Block a user