2023-03-20 15:52:35 +00:00
2023-03-20 15:47:37 +00:00
2023-03-20 03:56:30 +00:00
2023-03-20 15:27:12 +00:00
2023-03-20 15:44:47 +00:00
2023-03-20 15:27:12 +00:00
2023-03-20 15:52:35 +00:00

Aspect Ratio Helper pytest

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 = 768x768 75% of 512x256 = 384x192 etc.

user-interface.png

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 percentage buttons
  • Percentage buttons
    • Comma separated list of percentages
    • i.e 25, 50, 75, 125, 150, 175, 200 50, 125, 300 etc.

settings.png

Contributing:

  • Open to suggestions
  • Pull requests are appreciated
  • Write tests if possible and useful
  • Run pre-commit!
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%