Commit Graph
152 Commits
Author SHA1 Message Date
JaredTherriault 6fbddeedee Fix search 2024-05-10 21:46:43 -07:00
JaredTherriault 34c1ce82dd Speed up loading of images in SubFolderExplorer contexts
-Speed up loading of images in SubFolderExplorer contexts like Input and Output (up to 6x!)
-Separate logic for loading images and gathering subdirectories
-Update some code to reflect the move to a unified usage of  "directory" rather than "folder" (WIP)
-Return more useful responses from python backend
2024-05-10 20:33:18 -07:00
JaredTherriault f0338b0c5f Batch selection, batch deletion, classifying some scripts, module manager
-Added new batch selection and batch deletion features. All imageElements now have a checkbox and each selected element is tracked within a context or folder. When you've selected all you want to delete, click the recycle button on the toolbar, then again to confirm. All checked items will be recylced/deleted. You can also click on the selection widget next to the batch delete button to toggle select/deselect all.
-Renamed ImageDrawer.js to ImageDrawerMain.js
-Separated ImageListAndSearch out into separate scripts and classes named ImageDrawerList and ImageDrawerSearch
-Changed order of some initialized functions and variables in imageElements to better accommodate batch selection
-
-Moved some scripts over to a classy architecture. More scripts will be moved over time. This will eventually allow for multiple image drawer instances in the same window.
-Added a new module script that manages all class instances. See ImageDrawerModule.js for an explanation of the new architecture. Basically, it makes cyclical dependencies impossible.
-Updated imports
-Updated various scripts to use class instances where applicable
-Updated some outdated comments
-Added option to prepend or append labels to Labeled widgets
-Parameter optimizations
-
2024-05-07 20:39:40 -07:00
JaredTherriault 2b8b864fd7 Remove width calculation from imageElements and extraNetworks as it's redundant performance loss 2024-05-05 18:32:46 -07:00
JaredTherriault 8164bec931 Further iteration on last 2024-05-05 17:08:56 -07:00
JaredTherriault b87cf45681 Add option to collapse imageDrawer options (button in top-right) 2024-05-05 16:58:42 -07:00
JaredTherriault 7a3d3ba30b Add delete button to imageElements flyout
-Separate much of the logic for imageElements into imageElementsUtils for a more streamlined maintenance experience
-Add button to delete an image or video from the disk and list, preferring to move it to trash/recycling before deleting directly
2024-05-05 14:33:33 -07:00
JaredTherriault a0a9f1d675 Fix issue where undefined element was always being sent to be removed from imageList 2024-05-05 14:30:31 -07:00
JaredTherriault 3ed7fbee1b Fix sorting for image elements 2024-05-04 23:48:38 -07:00
JaredTherriault 55c3a96efb no-store all api calls 2024-05-04 17:01:52 -07:00
JaredTherriault 5566e237d0 Flyout improvements
-Simplify CSS
-Set layout CSS properties for flyouts from JS directly
-Apply layout rules to all flyouts
-Move imageElements flyout handle to top right rather than top left
2024-05-04 15:50:57 -07:00
JaredTherriault 1e55333ce0 Implement overflow control on x axis for image overflow menus 2024-05-03 19:54:46 -07:00
JaredTherriault e7538f0bb9 Update slider tooltip text for column count, drawer width, and drawer height sliders every time the slider is moved 2024-05-03 19:41:05 -07:00
JaredTherriault 6b5207e2b9 Replace options menu on images with flyout, Highlight menu options
-Replace options menu on images with flyout
-Highlight menu options and lora/embedding commands when hovered or clicked
2024-05-03 19:39:31 -07:00
JaredTherriault 667b4e2644 Merge pull request #2 from JaredTherriault/Iteration-On-Upload-Video-Widget
upload video widget improvements, sorting additions
2024-05-02 16:06:34 -07:00
JaredTherriault b84e19b4c3 Fix automatic Upload Visual Media node sizing for videos
-Fix automatic Upload Visual Media node sizing for videos
-Infer some display data from mediaElement when image or video doesn't originate from imageDrawer drag and drop
-Linter adherence
2024-05-02 16:04:46 -07:00
JaredTherriault e4d01c1bba Sort Json Object By Keys in ImageElements 2024-05-01 22:19:50 -07:00
JaredTherriault b1f6b374e2 Add SortJsonObjectByKeys 2024-05-01 22:19:18 -07:00
JaredTherriault 2367848782 Correctly calculate height for image drawer drag-ins 2024-05-01 20:49:23 -07:00
JaredTherriault 2172b88f35 Init DisplayData before assigning 2024-05-01 16:52:56 -07:00
JaredTherriault df8c6da431 Add DiisplayData structure to imageElement and drag and drop payload for imageElements 2024-05-01 16:28:50 -07:00
JaredTherriault d4fd0d9bc8 Fix event listener name 2024-05-01 16:28:11 -07:00
JaredTherriault 4e1ca6a008 update some function signatures to be functions rather than lambdas (for consistency) 2024-05-01 11:10:57 -07:00
JaredTherriault 306fc985f8 Update dimensional meta data on image load if it wasn't read from python 2024-05-01 11:10:23 -07:00
JaredTherriault 7f7625855f Merge branch 'main' into Iteration-On-Upload-Video-Widget 2024-04-30 22:06:26 -07:00
JaredTherriault 219d3a8a67 Implement image aspect ratio sort type 2024-04-30 22:05:52 -07:00
JaredTherriault 28e0d896bb Solve upload visual media sizing for image file types 2024-04-30 21:45:48 -07:00
JaredTherriault 811111102b Implement new sorting types: SortTypeFileSize, SortTypeImageWidth, SortTypeImageHeight, SortTypeFileType 2024-04-30 21:44:47 -07:00
JaredTherriault 690bfb3bdc Iteration 2024-04-30 13:28:13 -07:00
JaredTherriault fe91515ed8 Size images correctly 2024-04-29 20:33:06 -07:00
JaredTherriault acb386e956 Expose main element in labeled controls and fix subfolder toggle staying on when subfolder is changed 2024-04-29 18:56:08 -07:00
JaredTherriault 073d6fe6c4 Validate playback speed input value and fix setting volume and playback speed for all videos at once
Also remove reference to setting_VideoPlaybackOptions in onScrollVideo, invertWheelSeek is now a function parameter
2024-04-29 16:36:30 -07:00
JaredTherriault 1ded3147b3 Release capture of video info (cv) 2024-04-29 14:55:57 -07:00
JaredTherriault 75fd65d400 Merge branch 'main' into Iteration-On-Upload-Video-Widget 2024-04-29 14:46:15 -07:00
JaredTherriault b954c0e187 Fix for sub folder images constantly calling the sort method 2024-04-29 14:45:11 -07:00
JaredTherriault b9e0e3bc81 Iteration on Upload Video 2024-04-24 09:42:23 -07:00
JaredTherriault a8d62066f6 Media preview improvements
-Autosize node to media (still needs work)
-Center media and media info
-Be smarter about when Media info is displayed based on file type and whether or not they payload data is good
-Move some variables and calls around to minimize resource usage
-Apply existing callbacks
-Create media preview on configure so it appears when the user loads the workflow
-Update some names for linter
2024-04-23 18:27:19 -07:00
JaredTherriault 5efa9ce0ab Fix gathering of files in input and temp directories 2024-04-23 18:21:38 -07:00
JaredTherriault 795690ed20 Show video metadata on Upload Visual Media node
-Update VideoPreview import
-Pass JNodes Payload through so we can display information from metadata
-Show video metadata on Upload Visual Media node
-Show current time in seconds and current frame during playback
2024-04-22 18:03:11 -07:00
JaredTherriault f923e2a90a Make MediaInfoToString formatted pretty 2024-04-22 18:00:35 -07:00
JaredTherriault e545e1350f Fix import 2024-04-22 18:00:07 -07:00
JaredTherriault f2774fb9f5 Include renaming 2024-04-22 14:51:09 -07:00
JaredTherriault 25c05234cc Script renaming 2024-04-22 14:46:25 -07:00
JaredTherriault fc989fb216 Script renaming
-Uppercase script names for js, video -> media
2024-04-22 14:46:11 -07:00
JaredTherriault 6838fd084a Generify Media Upload nodes, fix video previews, image drawer drag and drop to node support
-Generify video loading nodes to work for many visual media types, still images, animated images, some video types, etc. 'Video' nodes and scripts and params have been renamed to 'media' to reflect the change.
-Added some accessors for MediaInfo
-Replaced OutVideoInfo with BreakMediaInfo
-Added some more information to MediaInfo
-Stashed renamed nodes into deprecated_nodes so they're still accessible for now
-Cleaned up some unnecessary variables and params in the media loading code, now runs a tiny bit faster
-Now possible to sample media by seconds or frames
-Added some filetype support in js, still need to just pull this directly from python
-Renamed some js variables to be less parsimonious and more clear
-Fix video preview in SaveVideo
-Encode text in video preview uri (so spaces in filenames work, et al)
-Add support for images and videos from the image drawer to be dragged onto UploadMedia node
-Formatting
2024-04-22 13:32:25 -07:00
JaredTherriault 7f5efaaabb video_nodes updates
-Fix video formats gathering code
-Fix ffmpeg output quality incorrectly mapping (now higher value = higher quality)
2024-04-22 13:07:21 -07:00
JaredTherriault 6c75bbd8ba Try/Catch when decoding filemap from python 2024-04-22 13:05:21 -07:00
JaredTherriault 130c206122 Utils cleanup
-Added map_to_range function
-Update video format gathering code
-Formatting
2024-04-22 13:04:54 -07:00
JaredTherriault 82dd816c74 Ensure directory exists when getting fileMap 2024-04-22 13:03:28 -07:00
JaredTherriault 47ffb7f703 Fix Show button not appearing after hiding drawer 2024-04-22 12:53:26 -07:00