Character image resolution loss on loading character.
dEATh-PM opened this issue · comments
dEATh-PM commented
Describe the bug
When a character is loaded and a PFP is generated in chat.py > generate_pfp_cache a thumbnail is generated as well.
This thumbnail image is then returned back to state['character_picture'] for us in Gradio.
When saving the character, state['character_picture'] is saved as the image parallel to the character .yaml, overwriting the original, and potentialy larger, image.
If this was the intended behavior, I would have assumed the down scaling would be performed when an image is initially imported.
text-generation-webui/modules/chat.py
Line 721 in cc8c7ed
Suggested sollution:
return original_img
Is there an existing issue for this?
- I have searched the existing issues
Reproduction
- Import a character with an image larger than 350x470
- Save character by pressing 💾
alt.
- Create a character with an image larger than 350x470
- Load character
- Save character by pressing 💾
Screenshot
No response
Logs
N/A
System Info
N/A