Commit Graph
68 Commits
Author SHA1 Message Date
MajoorWaldi 3728ceddee fix: clean up duplicate extractions in preview ops 2026-08-22 12:25:14 +02:00
MajoorWaldi 9f3edbe033 feat: complete P3 roadmap tasks (V3 nodes, ImageOpsMedia, HDR support) 2026-08-22 12:21:32 +02:00
MajoorWaldi c10d02aebd chore: P0-P2 implementations (CI gate, Memory budget, MultiType, Golden Parity test) 2026-08-22 11:46:44 +02:00
MajoorWaldi 882c909e6b fix: restore previews and V3 node registration 2026-08-21 22:56:44 +02:00
MajoorWaldi bf76568279 fix(compat): resolve AttributeError for V3 nodes by fetching root_init from sys.modules 2026-08-21 22:25:34 +02:00
MajoorWaldi a93034967e fix(nodes): register all 26 ImageOps nodes in __init__.py and nodes/__init__.py 2026-08-21 22:21:48 +02:00
MajoorWaldi 43a8180131 feat(vnext): complete Immediate First Sprint vNext migration and frontend parity tests 2026-08-21 22:13:27 +02:00
Ewald 40a8002a86 Fix ImageOps preview state and crop stitch 2026-06-12 00:42:31 +02:00
Ewald 9eef24e275 feat(imageops): add Crop Stitch node and improve crop functionality
- Add ImageOpsCropStitch node for cropping and stitching images
- Update ImageOpsCrop node to include a crop mask output
- Implement crop region mask generation for improved cropping functionality
- Update related metadata and widget configuration for new and updated nodes
2026-06-10 12:01:27 +02:00
Ewald ce750057fd fix(preview): improve pointer event handling and preview widget stability
- Add 'lostpointercapture' event listeners to handle pointer capture loss
- Implement reset button for image operations live preview
- Optimize preview widget height calculation to prevent layout jumps
2026-06-09 14:54:08 +02:00
Ewald ee2b519a87 chore: update imageops files and add example All Nodes MIO 2026-06-08 11:57:42 +02:00
Ewald e9183f86a2 fix(preview): improve interaction handling and remove unused features
- Add { passive: false } to event listeners for better control
- Remove color swatches and related logic from constant node
- Reset view instead of fit all in pad-out node
- Refine pan and zoom interactions in preview navigation
- Stop unnecessary event propagation in some cases
2026-06-08 08:11:26 +02:00
Ewald f1e74cef92 feat: Nodes Ui Refacto 2026-05-26 07:52:30 +02:00
Ewald 917509078e feat: optimize canvas context retrieval with willReadFrequently option
- Updated multiple instances in keyer.ts, nodestream.ts, and ops.ts to use the `willReadFrequently: true` option when obtaining 2D rendering contexts from HTMLCanvasElement. This change aims to improve performance when reading pixel data frequently.
- Enhanced navigation.ts to support aborting wheel event listeners using an AbortController.
- Modified state.ts and types.ts to include an optional AbortController in the NodeState interface for better management of event listeners.
2026-05-23 11:14:15 +02:00
Ewald 52a25b40ed Fix append video preview sync and docs 2026-05-21 08:10:34 +02:00
Ewald 980e2933a8 Fix imageops previews and frame count batching 2026-05-20 22:01:50 +02:00
Ewald 2cddb1ba1f fix(preview): include all numeric widgets in compact panel
Remove NATIVE_NUMERIC_WIDGET_NAMES exclusion list (rotate_deg, scale, strength, width, height, rotate). Excluded widgets were left visible as native LiteGraph sliders at the bottom of nodes, creating vertical empty space and duplicate UI (notably CameraShake/Transform/Spherize). Also includes prior session work: P1-P4 UX improvements, video preview anti-blink/anti-stutter fixes in source.ts, README and REFACTO docs cleanup.
2026-05-20 01:12:28 +02:00
Ewald ALOEBOETOE 3801b8b373 Bump version from 0.1.4 to 0.1.5 v0.1.5 2026-05-01 20:15:23 +02:00
Ewald c2f25dcd41 Fix live preview media refresh 2026-05-01 20:03:25 +02:00
Ewald ad937b4873 Merge branch 'main' of https://github.com/MajoorWaldi/ComfyUI-Majoor-ImageOps 2026-04-25 11:22:53 +02:00
Ewald 5149713a62 Add new GIF assets for OpsPaint, OpsSpherize, and OpsTransform
- Added OpsPaint.gif (1539 KB) to the docs directory.
- Added OpsSpherize.gif (1129 KB) to the docs directory.
- Added OpsTransform.gif (1577 KB) to the docs directory.
2026-04-25 11:22:48 +02:00
Ewald ALOEBOETOE 19995be299 Bump version from 0.1.3 to 0.1.4 2026-04-25 02:17:25 +02:00
Ewald e21e526a3e fix: version to 0.1.3 in package.json and pyproject.toml 2026-04-25 01:39:14 +02:00
Ewald f3bb1aa09c chore: add .gitattributes to enforce LF line endings 2026-04-25 01:28:18 +02:00
Ewald eec9935729 rebuild: update compiled JS from TypeScript sources 2026-04-25 01:26:41 +02:00
Ewald 40171fa0fd v0.1.4: channel/distort/spherize fixes, comp+draw widget sync, blur_map, version bump 2026-04-25 01:17:24 +02:00
Ewald f6168364d6 comp: add 〽️ icon prefix to display_name in define_schema 2026-04-25 01:16:28 +02:00
Ewald 068792c764 feat(color-correct): add zone-based color adjustment and soft brush drawing
- Implement global, shadows, midtones, and highlights zones for color correction
- Add brightness, contrast, saturation, vibrance, and gamma controls per zone
- Include temperature and tint adjustments with improved hue adjustment range
- Introduce soft brush drawing feature with adjustable softness
- Enhance draw tool with improved cursor feedback and eraser functionality
- Optimize performance with requestAnimationFrame for certain interactions
- Refactor color correction widget synchronization and reset logic
2026-04-24 23:52:41 +02:00
Ewald ec7925bc1a fix(preview): Pointer events broken in Node 2.0.21+
- Wheel zoom and pan on middle-click stopped working due to recent
  changes in Node's graph canvas container.
- Implement capture-phase wheel event handling on the document to
  regain control of preview zoom independent of Node version.
- Add safety checks against zero-size or detached canvases.
- Ensure pointer events reach preview canvases even if parent
  containers have pointer-events:none applied.
- Improve compatibility with Node 2.0 by adding fallbacks for
  widgets without proper addDOMWidget support.
2026-04-20 16:47:51 +02:00
Ewald a9dc8ef193 fix(preview): prevent auto-expanding unsupported image nodes
- Add a check for IMAGEOPS_CLASSES before auto-expanding image nodes
- This prevents auto-expanding for nodes that aren't in the IMAGEOPS_CLASSES set
- Applies to both JS and TypeScript versions of the code
2026-04-20 14:34:32 +02:00
Ewald 5085f85598 refactor(video): remove syncVideoToTick function and streamline video playback handling 2026-04-20 10:43:46 +02:00
Ewald ae8adfbe43 feat(imageops): improve draw node preview with zooming and panning
- Add Ctrl+mousewheel zooming to draw node preview
- Implement grab+drag panning for draw node preview
- Double-click to reset zoom/pan
- Adjust brush cursor size for zoom level
- Refactor preview rendering and interaction handling
2026-04-20 10:31:09 +02:00
Ewald 04c4209c13 fix(imageops): resolve clamp errors and improve code stability
- Replace 0 and 1 with 0.0 and 1.0 in clamp operations for better type consistency
- Add specific exception types in except clauses to catch only expected errors
- Remove unnecessary clamp operations in some functions
- Use math.pi instead of hardcoded 3.14159265 for better readability
- Initialize mask with explicit dtype=torch.float32 for consistency
2026-04-17 22:23:58 +02:00
Ewald 8330025ffe feat(imageops): add spherize and other transformations
- Implement spherize, fisheye, defisheye, latlong, and unlatlong transformations
- Add support for custom strength and invert options
- Update pad out functionality with improved bounds drawing and source handling
- Fix color widget type in corner pin node
- Add sync_dimensions toggle to crop node for linked/free aspect ratio
2026-04-17 22:05:16 +02:00
Ewald 532ac9920d refactor(imageops): enhance color correction capabilities
- Add new color correction parameters: tint, vibrance, shadows, midtones, highlights
- Remove padOutStitcher and related functions
- Update color correction wheel and widget interactions
- Modify renderColorCorrect to include new parameters
- Improve syncColorCorrectWidgets to handle new parameters
2026-04-17 18:04:15 +02:00
Ewald 901ac98117 feat(corner-pin): add bicubic interpolation option
- Implement bicubic interpolation function for smoother image resampling
- Add logic to switch between nearest, bilinear, and bicubic sampling methods
- Update both Python and JavaScript implementations for consistency
- Modify safe denominator calculation to preserve sign for negative values
2026-04-17 16:09:47 +02:00
Ewald bd61c74b6a perf(preview): improve noise node performance and zoom/pan interactions
- Optimize Perlin noise gradient calculations by using precomputed tables
- Reduce canvas resolution for noise node previews to match canvas size
- Implement screen-to-world coordinate conversion for consistent zoom/pan across widgets
- Remove unused renderNonce from NodeState
2026-04-17 15:44:20 +02:00
Ewald ccf5191a77 Merge branch 'main' of https://github.com/MajoorWaldi/ComfyUI-Majoor-ImageOps 2026-04-17 09:37:45 +02:00
Ewald 50d3ce5a98 feat(comp): add corner pin functionality to composition layers
- Implement corner pin controls for composition layers
- Add functions to handle corner pin normalization and validation
- Update composition layer serialization and deserialization to include corner pin data
- Modify comp layer rect calculation to support corner pin
- Add utility functions for link handling in the graph
2026-04-17 09:37:18 +02:00
MajoorWaldi a667313c84 refactor: remove ImageOpsPadOutStitch node and update related references 2026-04-08 14:34:04 +02:00
MajoorWaldi e1abaf9366 feat(imageops): add ImageOpsPadOutStitch node for enhanced outpainting
- Implement new ImageOpsPadOutStitch node in Python and JavaScript
- Add stitching functionality to combine original and outpainted areas
- Introduce feathering option for smooth transitions between areas
- Update adapter and ops to support new node in both environments
- Extend preview host to recognize and process new node type
2026-04-08 09:46:53 +02:00
MajoorWaldi e6696e7f09 feat: add new properties to NodeState and CropPreviewGeometry interfaces
- Added drawOverlayFormatSelect, drawPressureSizeInput, drawPressureOpacityInput, and drawTiltSizeInput to NodeState for enhanced drawing options.
- Introduced bbox property in CropPreviewGeometry to provide detailed bounding box information for cropping functionality.
2026-04-08 08:08:39 +02:00
MajoorWaldi e94965a5e2 feat: add pad out and corner pin image operations
- Implemented `ImageOpsPadOut` for adding padding to images with customizable padding values and fill color.
- Implemented `ImageOpsCornerPin` for applying corner pin transformations to images, allowing for perspective adjustments.
- Added helper functions for rendering padded canvases and corner pin transformations in the preview.
- Updated type definitions to include new states and geometry for corner pin and pad out operations.
- Enhanced the main operations file to support new image operations and their respective masks.
2026-04-08 00:45:49 +02:00
Ewald f88dab1e4a feat: add image to mask preview canvas functionality and enhance rendering capabilities
- Implemented `imageToMaskPreviewCanvas` function to convert images to mask previews based on alpha values.
- Updated `renderCompPreview` to support additional parameters for center positioning and rotation of layers.
- Modified `buildRenderer` to utilize `getInputOriginSlot` for improved input handling.
- Enhanced `NodeState` interface with additional properties for drawing and color management.
- Expanded `CropDragMode` and `CompDragMode` types to include new drag options.
2026-04-06 02:30:33 +02:00
Ewald 58561c4859 refactor: optimize node stream processing and improve canvas handling
- Replace queue.shift() with index pointer in resolveNodeStreamPreview to reduce O(n) complexity.
- Introduce MaskCanvas type and caching mechanisms for prepared mask canvases in ops.ts.
- Enhance fitCanvas to check for prepared mask canvases and mark them accordingly.
- Update extractCanvasField to utilize caching for performance improvements.
- Refactor renderCompPreview to handle alpha compositing more efficiently.
- Implement syncVideoToTick function to manage video playback timing based on render ticks.
- Modify ensureVideoFrameCanvas to support tick-based synchronization for video frames.
- Change waveform and vectorscope data types from Uint16Array to Uint32Array to prevent overflow.
- Update types to include new properties for interaction handling and static render caching.
2026-04-03 11:05:32 +02:00
MajoorWaldi 97619b45fc feat: Add media preview support with video and image handling in LivePreview 2026-03-27 10:54:16 +01:00
MajoorWaldi 83fe6ef4b9 feat: Enhance live preview rendering and state management
- Introduced new state properties in ensureState to manage rendering state, including lastRenderTick, renderInFlight, queuedRenderTick, and renderNonce.
- Added hashText and serializePreviewValue functions for efficient preview value serialization.
- Implemented buildPreviewRenderKey to create a unique key for rendering based on node state and inputs.
- Improved rendering logic in registerImageOpsLivePreview to handle queued renders and prevent unnecessary re-renders.
- Refactored blit function to accept various source types and improved canvas handling.
- Added ensureCanvasSize and renderImageSourceToCanvas functions to streamline canvas creation and image rendering.
- Updated ops and renderer modules to utilize new rendering functions and improve performance.
- Enhanced error handling during rendering processes to provide clearer feedback.
2026-03-27 09:15:50 +01:00
MajoorWaldi 314efcdbe6 feat: Add progress tracking to image operations
- Introduced a new progress tracking system for image operations, allowing for better user feedback during processing.
- Updated `invert.py`, `merge.py`, `noise.py`, `preview.py`, and `transform.py` to utilize the new progress tracking.
- Added unique ID handling for progress tracking to each operation.
- Enhanced the noise generation to support frame length and FPS settings.
- Modified the image operations adapter to accommodate changes in function signatures for progress tracking.
- Implemented procedural animation handling in the preview system to support animated values.
- Created a new `nodes_progress.py` file to encapsulate the progress tracking logic.
2026-03-27 08:49:56 +01:00
MajoorWaldi 8f0249b81c Refactor canvas context retrieval and error handling in renderer
- Updated canvas context retrieval to handle potential null values gracefully in `renderer.ts`.
- Enhanced error handling by returning null when context cannot be obtained.
- Added a `tick` parameter to the adapter apply context in `types.ts`.
- Introduced new distortion and noise nodes in Python, implementing image distortion and noise generation functionalities.
- Improved memory management by closing previous bitmaps in `source.ts`.
2026-03-27 00:23:29 +01:00
MajoorWaldi a8dfbcf7e2 feat(transform): refactor _transform_frame and _transform_masked_source for consistent scalar handling across indexed inputs 2026-03-26 22:55:31 +01:00