Skip to content

feature: comprehensive enhancements for image diff view - #2667

Open
MarekMaslanka wants to merge 4 commits into
sourcegit-scm:developfrom
MarekMaslanka:develop
Open

feature: comprehensive enhancements for image diff view#2667
MarekMaslanka wants to merge 4 commits into
sourcegit-scm:developfrom
MarekMaslanka:develop

Conversation

@MarekMaslanka

Copy link
Copy Markdown

This PR improves the Image Diff experience by introducing interactive zoom and pan controls, pixel-level difference detection with visual outline highlights, detailed difference statistics, and the ability to compare unstaged images directly against their staged versions.

Marek Maślanka added 4 commits August 30, 2026 09:34
- Add Zoom control toolbar with slider, zoom in/out buttons, and reset option
- Add mouse wheel zoom (Ctrl + scroll) and left-click drag panning across image diff views
- Synchronize scroll offsets between Old and New image viewports in Side-by-Side mode
- Fix initial layout measurement fallback when viewport dimensions are uninitialized on first load
- Adjust Slider style to vertically center track without extra margin or clipping
- Add English localization entries for image zoom controls
- Implement ImageDifferenceDetector to detect and cluster changed pixels between images
- Add high-contrast bounding box and outline rendering across all image diff modes
- Add 'Outline Changes' toggle button in the image diff toolbar
- Add English localization entry for the outline toggle button
…ff view

- Calculate changed pixel count and percentage in ImageDifferenceDetector
- Display pixel difference statistics in image diff toolbar
- Show total number of detected change regions when outline mode is active
- Add FromStagedAsync to query staged image from git index
- Support toggling baseline image between HEAD and STAGED in ImageDiff
- Add toolbar control to switch baseline image for unstaged changes
- Update image diff headers and statistics dynamically based on selected base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant