简单的扩展可在更改尺寸时轻松保持纵横比。sd-webui-aspect-ratio-helper下载后解压存放至:stable-diffusion-webui\extensions
Features 特征
(note this list is a little out of date, will need to find time to update it)(注意这个列表有点过时了,需要找时间更新)
- JavaScript aspect ratio controlsJavaScript 宽高比控制
- Adds a dropdown of configurable aspect ratios, to which the dimensions will auto-scale添加可配置纵横比的下拉列表,尺寸将自动缩放到该下拉列表
- When selected, you will only be able to modify the higher dimension选择后,您将只能修改较高的维度
- The smaller or equivalent dimension will scale accordingly较小或同等尺寸将相应缩放
- If “Lock/ ” is selected, the aspect ratio of the current dimensions will be kept如果选择“Lock/ ”,则保持当前尺寸的长宽比
- If “Image/ ” is selected, the aspect ratio of the current image will be kept (img2img only)如果选择“Image/ ”,将保留当前图像的宽高比(仅img2img)
- If you click the “Swap/⇅” button, the current dimensions will swap如果单击“交换/⇅”按钮,当前尺寸将交换
- Configurable aspect ratios will also flip, reducing the need for duplication of config可配置的宽高比也将翻转,减少重复配置的需要
- Scale to maximum dimension缩放至最大尺寸
- Upon clicking, the width and height will scale according to the configured maximum value点击后,宽度和高度将根据配置的最大值缩放
- Aspect ratio will be retained, the smaller or equivalent dimension will be scaled to match将保留纵横比,较小或等效的尺寸将被缩放以匹配
- Scale to aspect ratio 比例与纵横比
- Upon clicking, the current dimensions will be scaled to the given aspect ratio, using the highest width or height单击后,当前尺寸将使用最大宽度或高度缩放到给定的纵横比
- i.e
4:3 of 256x512 = 512x384
9:16 of 512x256 = 288x512
1:1 of 256x300 = 300x300
即4:3 of 256x512 = 512x384
9:16 of 512x256 = 288x512
1:1 of 256x300 = 300x300
- i.e
- You can optionally toggle this to use the “Maximum dimension” slider value您可以选择切换此选项以使用“最大尺寸”滑块值
- i.e
4:3 of 512 = 512x384
9:16 of 512 = 288x512
1:1 of 300 = 300x300
即4:3 of 512 = 512x384
9:16 of 512 = 288x512
1:1 of 300 = 300x300
- i.e
- Upon clicking, the current dimensions will be scaled to the given aspect ratio, using the highest width or height单击后,当前尺寸将使用最大宽度或高度缩放到给定的纵横比
- Scale by percentage 按百分比缩放
- Upon clicking, the current dimensions will be multiplied by the given percentage, with aspect ratio maintained单击后,当前尺寸将乘以给定百分比,并保持纵横比
- i.e
-25% of 512x256 = 384x192
+50% of 512x512 = 768x768
即-25% of 512x256 = 384x192
+50% of 512x512 = 768x768
- You can also change the display of these if you find it more intuitive如果您觉得更直观,您还可以更改这些内容的显示
- i.e
75% of 512x256 = 384x192
150% of 512x512 = 768x768
即75% of 512x256 = 384x192
150% of 512x512 = 768x768
- i.e
x0.75 of 512x256 = 384x192
x1.5 of 512x512 = 768x768
即x0.75 of 512x256 = 384x192
x1.5 of 512x512 = 768x768
Settings 设置
- Hide accordion by default (
False
)默认隐藏手风琴 (False
) - Expand accordion by default (
False
)默认展开手风琴 (False
)- Determines whether the ‘Aspect Ratio Helper’ accordion expands by default确定“Aspect Ratio Helper”手风琴是否默认展开
- UI Component order (
MaxDimensionScaler, PredefinedAspectRatioButtons, PredefinedPercentageButtons
)UI 组件顺序 (MaxDimensionScaler, PredefinedAspectRatioButtons, PredefinedPercentageButtons
)- Determines the order in which the UI components will render确定 UI 组件呈现的顺序
- Enable JavaScript aspect ratio controls启用 JavaScript 宽高比控制
- JavaScript aspect ratio buttons
(1:1, 4:3, 16:9, 9:16, 21:9)
JavaScript 宽高比按钮(1:1, 4:3, 16:9, 9:16, 21:9)
- i.e
1:1, 4:3, 16:9, 9:16, 21:9
2:3, 1:5, 3:5
即1:1, 4:3, 16:9, 9:16, 21:9
2:3, 1:5, 3:5
- i.e
- Show maximum dimension button (
True
)显示最大尺寸按钮 (True
) - Maximum dimension default (
1024
)最大尺寸默认 (1024
) - Show pre-defined aspect ratio buttons (
True
)显示预定义的宽高比按钮 (True
) - Use “Maximum dimension” for aspect ratio buttons (
False
)对长宽比按钮使用“最大尺寸”(False
) - Pre-defined aspect ratio buttons (
1:1, 4:3, 16:9, 9:16, 21:9
)预定义宽高比按钮(1:1, 4:3, 16:9, 9:16, 21:9
)- i.e
1:1, 4:3, 16:9, 9:16, 21:9
2:3, 1:5, 3:5
即1:1, 4:3, 16:9, 9:16, 21:9
2:3, 1:5, 3:5
- i.e
- Show pre-defined percentage buttons (
True
)显示预定义的百分比按钮 (True
) - Pre-defined percentage buttons (
25, 50, 75, 125, 150, 175, 200
)预定义百分比按钮(25, 50, 75, 125, 150, 175, 200
)- i.e
25, 50, 75, 125, 150, 175, 200
50, 125, 300
IE25, 50, 75, 125, 150, 175, 200
50, 125, 300
- i.e
- Pre-defined percentage display format (
Incremental/decremental percentage (-50%, +50%)
)预定义的百分比显示格式(Incremental/decremental percentage (-50%, +50%)
)Incremental/decremental percentage (-50%, +50%)
Raw percentage (50%, 150%)
Multiplication (x0.5, x1.5)
JavaScript & accordion aspect ratios might not play well together – I don’t think many users will use both simultaneously, but we’ll see.JavaScript 和手风琴的长宽比可能无法很好地结合在一起 – 我认为不会有很多用户会同时使用两者,但我们会看到的。
官方网址立即下载
积分奖励:邀请注册1积分,新用户1积分,签到奖励0.5积分
评论0