LEv145
57d1f99364
Update emojis
2023-07-02 17:41:41 +02:00
LEv145
48fa82044c
Update emojis
2023-07-02 17:38:52 +02:00
LEv145
d1bf50f00c
Add button for change default logic of apply
...
Update styles
Rename constants to UPPERCASE
2023-07-02 13:54:58 +02:00
LEv145
2d34f694d3
Update aspect ratio panel
...
Aspect ratio changed according to wikipedia (https://en.wikipedia.org/wiki/Aspect_ratio_(image) )
Slightly redesigned for 1:1 for a better look
Update preview image
2023-07-01 12:27:49 +02:00
LEv145
ffa554537b
Calculator button is returned
2023-07-01 02:55:19 +02:00
LEv145
db639d5315
Updated to convenient settings
...
Make calculation of height and width inverse, that is, the way it is convenient for me
Disable `calculator_button` in css
Use flex(dynamic) width for all buttons
Add resolution presets by formula: `f(x) = 512 + (1024-512)/4*x, 0 <= x <= 4 `
Add ratios presets
2023-06-29 18:48:27 +02:00
alemelis
9df49dc2d7
fix
...
return round(h * (n / d))
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
2023-04-12 10:23:17 +01:00
roamindev
40e1de2c52
Fix JS File Path Variable
...
Corrected Path variable for button_titles.js file to proper formatting/usage.
2023-04-11 19:30:53 -04:00
roamindev
eb94a0937f
Add JS based button titles
...
Add button titles on UI load. Use comments in aspect_ratios.txt and resolutions.txt to for user configured buttons, and hard-coded titles in sd-webui-ar.js for built-in buttons (i.e. for calculator).
2023-04-04 11:06:50 -04:00
roamindev
82699b5536
Simplify ratio calculation and other changes
...
Simplified ratio calculation, swapped calculator button icon for text to ensure browser compatibility, updated button styles, simplified self.image declaration.
2023-04-02 21:18:49 -04:00
roamindev
fd54596c19
Make recommended review changes
...
Made recommended review changes except where noted in review comments.
2023-03-31 22:27:15 -04:00
roamindev
2fc8d9e3b1
Added aspect ratio calculator
...
Added aspect ratio calculator panel inspired by the aspect ration calculator website by Andrew Hedges (https://andrew.hedges.name/experiments/aspect_ratio/ )
2023-03-30 22:53:10 -04:00
Jonas Stare
5662bab6c8
Enable users to enter aspect rations as w/h
2023-02-22 22:14:14 +01:00
alemelis
9c0827baf0
pull the band-aid and get it over with
2023-02-20 08:55:04 +00:00
alemelis
a580c34aa7
fix for ar < 1
2023-02-08 09:31:15 +00:00
alemelis
60119a641c
fix img2img tab
2023-02-06 14:21:15 +00:00
alemelis
ec93fa84f7
allow for custom resolution presets
2023-02-06 14:09:54 +00:00
alemelis
9c2a7edceb
add resolutions.txt
2023-02-06 08:42:34 +00:00
minemo
81bb9c9428
Fixed encoding mismatch
2023-02-04 13:55:12 +01:00
alemelis
96d00ec25b
port UI changes to extension
2023-02-03 10:18:32 +00:00