mirror of
https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git
synced 2026-03-14 09:38:14 +00:00
40fd47ffb305abca3f3a6746b2a607c2e974ddf3
Aspect Ratio Helper 
Simple extension to easily maintain aspect ratio while changing dimensions.
Install via the extensions tab on the AUTOMATIC1111 webui.
Main features:
- Scale to maximum width or dimension
- Upon clicking, the dimensions will scale the highest value to the maximum configured value
- Aspect ratio will be maintained, the smaller or equivalent value will be scaled to match
- Scale by percentage
- Upon clicking, the current dimensions will be multiplied by the given percentage, with aspect ratio maintained
- i.e
150% of 512x512 = 768x76875% of 512x256 = 384x192etc.
Settings:
- Expand by default
- Determines whether the 'Aspect Ratio Helper' accordion expands by default
- Show maximum width of height button
- Maximum width or height default
- Show predefined percentage buttons
- Predefined percentage buttons
- Comma separated list of percentages
- i.e
25, 50, 75, 125, 150, 175, 20050, 125, 300etc.
- Predefined percentage display format
Contributing:
- Open to suggestions
- Pull requests are appreciated
- Write tests if possible and useful
- Run pre-commit
Testing:
- From the root of the repository run:
pip install pytest
pytest
Description
Simple extension to easily maintain aspect ratio while changing dimensions. Install via the extensions tab on the AUTOMATIC1111 webui.
Readme
476 KiB
Languages
Python
67.6%
JavaScript
30.8%
CSS
1.6%

