From 323ce7efef3e3f67b11c09c9e7fa3567d293b048 Mon Sep 17 00:00:00 2001 From: AlUlkesh <99896447+AlUlkesh@users.noreply.github.com> Date: Sat, 9 Dec 2023 22:40:56 +0100 Subject: [PATCH] Image ratio information --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b3db372..13d1fd3 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,18 @@ Please also check the [discussions](https://github.com/AlUlkesh/stable-diffusion (Ctrl can be changed in settings) +## Image ratio +Thumbnails are displayed as squares. Currently the default in automatic1111 is for thumbnails to be cropped for this. If you prefer to see the full image, with black bars, you can add this to user.css (in the main a1111 directory): + +``` +.thumbnail-item > img { + object-fit: contain !important; +} +.thumbnail-lg > img { + object-fit: contain !important; +} +``` + ## Credit Credit goes to the original maintainer of this extension: https://github.com/yfszzx and to major contributors https://github.com/Klace and https://github.com/EllangoK - -Image Reward: https://github.com/THUDM/ImageReward