Commit Graph

68 Commits

Author SHA1 Message Date
LEv145
72025d3914 Update description of fork 2023-07-07 02:22:17 +02:00
LEv145
4af79f5dee Update description of fork 2023-07-07 02:20:30 +02:00
LEv145
c56a772a6e Update description of fork 2023-07-07 02:17:47 +02:00
LEv145
2a4c13c211 Add prefix for element ids (For CSS and JS) 2023-07-05 15:03:49 +02:00
LEv145
7cd0acb5ed Update TODO 2023-07-05 14:58:50 +02:00
LEv145
338806aa67 Update height 2023-07-04 16:35:08 +02:00
LEv145
102d3b5faa Hide gradio updates for "Aspect Ratio" markdown
Css trick
2023-07-04 16:32:47 +02:00
LEv145
6041b407fe Rename Fixme 2023-07-04 16:31:00 +02:00
LEv145
4f2bcd0760 Description for 🔍 button
Update preview
2023-07-04 11:30:50 +02:00
LEv145
15ac0bd30e Move tabs
Nw emoji for `round`
2023-07-04 11:24:49 +02:00
LEv145
ed155fc877 Add round button (1023x101 => 1024x100) 2023-07-04 09:38:39 +02:00
LEv145
1e15a5c2aa Format code 2023-07-04 08:51:50 +02:00
LEv145
41ce78ae58 Format code 2023-07-04 08:51:42 +02:00
LEv145
52b7e129f7 Move click functions 2023-07-04 08:51:06 +02:00
LEv145
a420d9b357 Add round_to_multiple function 2023-07-04 08:47:34 +02:00
LEv145
0412efe7a7 Update preview image 2023-07-02 17:49:29 +02:00
LEv145
76f97f1ec9 Add more complete explanation of modes 2023-07-02 17:48:50 +02:00
LEv145
316984aa58 Add styles for emojis 2023-07-02 17:42:50 +02:00
LEv145
57d1f99364 Update emojis 2023-07-02 17:41:41 +02:00
LEv145
1cc0eba459 Remove styles for emojis 2023-07-02 17:39:20 +02:00
LEv145
48fa82044c Update emojis 2023-07-02 17:38:52 +02:00
LEv145
64ffba011f Remove styles for emoji 2023-07-02 17:30:19 +02:00
LEv145
ba271a376b Update description of new button 2023-07-02 17:29:31 +02:00
LEv145
a20b4542af Update width of tool buttons
Because I use emoji, not text
2023-07-02 17:29:11 +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
9564f610fc Update README.md 2023-07-01 02:56:25 +02:00
LEv145
530b194662 Update 2023-07-01 02:55:48 +02:00
LEv145
ffa554537b Calculator button is returned 2023-07-01 02:55:19 +02:00
LEv145
46ef09f07f Remove unused styles 2023-06-30 01:47:57 +02:00
LEv145
d99d1e9666 Update styles for img2img 2023-06-30 01:47:13 +02:00
LEv145
a08958d326 Update preview 2023-06-29 22:51:04 +02:00
LEv145
e5ae244e7c Addbutton_titles.js to .gitignore 2023-06-29 22:41:01 +02:00
LEv145
2e8ddc97e4 Addbutton_titles.js to .gitignore 2023-06-29 22:40:52 +02:00
LEv145
9bfca5c57b Add a little margin for buttons box 2023-06-29 20:59:00 +02:00
LEv145
45e097a877 Fix README 2023-06-29 19:00:05 +02:00
LEv145
a26a50a1a7 Fix README 2023-06-29 18:52:37 +02:00
LEv145
7fcf1fed2e Fix README 2023-06-29 18:52:03 +02:00
LEv145
c312e96c73 Add fork description 2023-06-29 18:51: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
alemelis
e83190228c Merge pull request #13 from roamindev/add-calculator
Added Aspect Ratio Calculator Panel
2023-04-12 10:11:49 +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
11e9a8db03 Updated README.md with "Calc" button change
Corrected wording and replaced animated screenshot for new "Calc" button
2023-04-02 21:28:28 -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
870f5911b6 Update README.md Fixed Typo
Correcting typo in new calculator instructions - wording for the two source dimensions buttons was inconsistent.
2023-04-01 16:16:32 -04:00
roamindev
d539110adf Update README.md with calculator instructions
Added section for calculate instructions with animated GIF showing basic usage.
2023-04-01 03:16:40 -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