Commit Graph

3520 Commits

Author SHA1 Message Date
bcaa624b9b Prevent collisions of 'What's new' and the server status 2023-03-19 17:42:08 +01:00
b5da4e2fa0 Make download file names shorter 2023-03-19 17:29:13 +01:00
7917ac8ebc Load prompt: support JSON and TXT metadata
Also, allow prompt files (one line per prompt) to be dnd'ed
2023-03-19 16:21:17 +01:00
700bfc16bd Merge pull request #1025 from cmdr2/beta
temp fix for installations that installed torch 2.0 by mistake
2023-03-17 13:33:41 +05:30
8aead029a8 temp fix for installations that installed torch 2.0 by mistake 2023-03-17 13:33:13 +05:30
38aafd3577 Merge pull request #1024 from cmdr2/beta
Temp fix for macOS installations that installed torch 2.0 by mistake,…
2023-03-17 13:28:15 +05:30
a9da65c2cd Temp fix for macOS installations that installed torch 2.0 by mistake, when torch 2 released yesterday 2023-03-17 13:27:44 +05:30
a290fdd28c Merge pull request #1023 from cmdr2/beta
Use CUDA-specific torch only on Linux, not mac
2023-03-17 13:21:10 +05:30
0324deec60 Use CUDA-specific torch only on Linux, not mac 2023-03-17 13:20:37 +05:30
d7b3b5d87f Merge pull request #1022 from cmdr2/beta
Beta
2023-03-17 10:16:09 +05:30
28338612fa Pin versions: torch 1.13.1 and torchvision 0.14.1, and update stable-diffusion-sdkit which also pins the torch and torchvision versions for macOS 2023-03-17 10:07:22 +05:30
fe23cc558d Merge pull request #1019 from JeLuF/zoom
When zooming, only show one copy of the image
2023-03-16 11:47:27 +05:30
394cb72e46 Merge branch 'beta' into zoom 2023-03-16 11:47:14 +05:30
57c85a64c7 Merge pull request #1018 from AssassinJN/patch-3
remove task from dome when removing images
2023-03-16 11:46:31 +05:30
a3f357732c formatting 2023-03-16 11:42:31 +05:30
ca99b87319 Filter NSFW images (if enabled) during live preview 2023-03-16 11:30:16 +05:30
3507f91090 Remove click event for preview image expansion, since it breaks Rabbit Hole 2023-03-16 11:12:10 +05:30
aa3bc864ee Also fix clicks into the image 2023-03-16 00:32:10 +01:00
db769dd995 When zooming, only show one copy of the image
Don't add a copy of the image for each live preview image shown
2023-03-16 00:08:24 +01:00
a0f2097b1b Move the createElement() function to utils.js 2023-03-15 21:30:12 +05:30
6298df14e7 Hide only the filtered-out button in a row, not the entire row 2023-03-15 21:20:56 +05:30
2d0a76c5a4 remove task from dome when removing images
Changing the functionality to remove task from dom when all images have been removed. This will save system memory in the browser allowing better performance.
2023-03-15 11:13:26 -04:00
b7a7a7d31f Move similar image info buttons into a single row, using the new array API 2023-03-15 19:41:19 +05:30
841811e3bc Full screen button on images; Changelog 2023-03-15 19:25:55 +05:30
0679fb2b20 Merge pull request #1017 from ogmaresca/image-modal
Add image modal functionality
2023-03-15 18:45:17 +05:30
230f7b478a Merge pull request #1013 from JeLuF/text-css
Hardcode CSS content type
2023-03-15 18:44:54 +05:30
c8f8f329e3 Allow creating custom HTML elements for image info button plugins (#1007)
* Allow creating custom HTML elements for image info button plugins

* Allow arrays and labels

* Add spacing between buttons on the same row
2023-03-15 18:44:43 +05:30
9c4d702434 Merge pull request #1015 from JeLuF/issue-1012
Fix #1012 - Image Modifiers > Thumbnail Size slider remembers its pos…
2023-03-15 18:42:11 +05:30
ab7d74d2fa Add a image modal function 2023-03-14 21:43:49 -04:00
c9ddf4d15f Fix #1012 - Image Modifiers > Thumbnail Size slider remembers its position but does not apply it at page load 2023-03-14 19:02:34 +01:00
7af620f66e Hardcode CSS content type
By default, uvicorn uses the 'Content Type' value from 'Computer\HKEY_CLASSES_ROOT\.css' for the Content-Type header in its responses. Some systems have this set to 'application/x-css', an outdated content type used in the early days of CSS. Modern browsers ignore stylesheets that don't have the content-type 'text/css'. This change hardcodes the Content-Type to 'text/css', ignoring the registry.
2023-03-14 18:49:31 +01:00
24b631500a Merge pull request #1009 from JeLuF/BigX
Only delete task sections if they are no longer processing
2023-03-14 21:57:59 +05:30
c27d57831c changelog 2023-03-14 20:30:17 +05:30
30eb729973 Tweak preview slider width 2023-03-14 11:41:46 +05:30
7f24241372 Merge pull request #1005 from JeLuF/noplugins
Rename user hint
2023-03-14 10:42:59 +05:30
0ddcc98a57 Merge pull request #1004 from JeLuF/toosmall
Warn users about small image dimensions
2023-03-14 10:42:13 +05:30
9ca8cf810b Merge pull request #1003 from patriceac/patch-50
Notify plugins when image tags get refreshed
2023-03-14 10:41:12 +05:30
3c2157111b Download all: Add Metadata download (#923)
* Download all: Add Metadata download

* Harmonise capitalisation

* Add JSzip, download popup

* 'Save all' popup
- add ZIP download with JSON and folder support
- Popup to prevent accidental trigger of an image download
- Use FileSaver polyfill for better browser support

* remove debug output

* Make DownloadImages a tertiary button
2023-03-14 10:40:24 +05:30
d26e646a94 Refresh the image count as user types (#936)
* Refresh the image count as user types

Currently I have to change the focus for the image count to refresh. This change makes it immediate. I've been wondering if 'change' should merely be replaced by 'keyup' but decided against it for accessibility reasons (people who might be using accessibility tools with alternative input methods).

* Add a debounce

Setting a debounce of 300ms on keyup.
2023-03-14 10:37:55 +05:30
1fda12640f Custom Image Modifiers dialog tweaks (#935)
* Custom Image Modifiers dialog tweaks

Couple minor usability improvements for the custom image modifiers dialog:
- set the focus to the textbox when opening the dialog
- pressing the Escape key closes the dialog

* Adding keyboard shortcuts

Escape to cancel the changes, Ctrl+Enter to confirm the changes. No change to the existing UI behavior using the mouse.

* Make the overlay focusable

Allows the keyboard shortcuts to work if user clicks on the main window rather than the textbox itself.

* Disable spell and grammar correction
2023-03-14 10:37:21 +05:30
05316ae25b Merge pull request #965 from patriceac/patch-49
Fix the display of the preview scale slider
2023-03-14 10:36:45 +05:30
079402cb2f Fix restoration of weighted tasks with truncated modifiers (#956)
* Fix restoration of weighted tasks with truncated modifiers

* Reverting this change

Will create a separate PR for this as needed. Doesn't impact the other bug fix.

* Update utils.js
2023-03-14 10:36:21 +05:30
995bdc77b8 Merge pull request #938 from patriceac/patch-46
Make the image editor scrollable as needed
2023-03-14 10:35:59 +05:30
c52b72f500 Merge pull request #991 from JeLuF/modi
Fix autosave of modifiers image style
2023-03-14 10:35:34 +05:30
a4e496abc1 version 2023-03-14 10:34:52 +05:30
6cb981655e Fix a bug where the merge plugin wouldn't use the subfolder path of a model 2023-03-14 10:03:53 +05:30
2916a33fa2 Only delete task sections if they are no longer processing 2023-03-13 23:05:11 +01:00
ca555686ec Rename user hint 2023-03-12 22:31:14 +01:00
03256f6bba Warn users about small image dimensions
Show a warning if the user chooses width & height < 512px
2023-03-12 20:43:54 +01:00
257b14ee09 Notify plugins when image tags get refreshed
Image modifiers may be temporarily hidden by plugins like searchable modifier search box, and when restoring a task (e.g. use settings) the image modifier s copied with the hidden class set, which makes it look like it's missing.

By notifying plugins that the image tags have been refreshed, it allows it to act accordingly (in this case by making sure image tags are visible).
2023-03-12 01:23:05 -08:00