Skip to content

feat: add rectangular selection with fill/stroke (Fixes #7) [FaaFyfxR9WAQrL7FcAgEHJvztd8cVMxvjHRS55rw1nwH] - #30

Open
waterWang wants to merge 1 commit into
mergeos-bounties:masterfrom
waterWang:master
Open

feat: add rectangular selection with fill/stroke (Fixes #7) [FaaFyfxR9WAQrL7FcAgEHJvztd8cVMxvjHRS55rw1nwH]#30
waterWang wants to merge 1 commit into
mergeos-bounties:masterfrom
waterWang:master

Conversation

@waterWang

Copy link
Copy Markdown

Summary

Add rectangular selection support with fill and stroke operations to the gimp-mcp server.

Changes

  • Backend: Added , , , , methods to MockBackend with selection state tracking
  • Protocol: Updated protocol with selection method signatures
  • MCP Tools: Added , , , , tools
  • Tests: 12 new tests covering all selection operations, edge cases (no selection, unknown image), and error handling
  • Cleanup: Removed BOM characters from source files that caused SyntaxError

Usage

  1. gimp_select_rect(image_id, x, y, width, height) — create a rectangular selection
  2. gimp_fill_selection(image_id, color) — fill the selection with color
  3. gimp_stroke_selection(image_id, color, width) — stroke the selection border
  4. gimp_get_selection(image_id) — query current selection bounds
  5. gimp_clear_selection(image_id) — clear the active selection

Test Results

All 12 new selection tests pass. Full test suite: 30 passed, 3 pre-existing failures (missing fixture file).

Fixes #7

@laurentketterle-hub

Copy link
Copy Markdown

QA Verification — gimp-mcp#30

PR: feat: add rectangular selection with fill/stroke (Fixes #7) [FaaFyfxR9WAQrL7FcAgEHJvztd8cVMxvjHRS55rw1nwH]
Author: @waterWang | SHA: 524ba3b

CI: no checks

  • No checks

Tests

✅ no tests

Evidence

| Screenshots | ❌ |
| Video/GIF | ❌ |
| Logs | ✅ |

Verdict: ⚠️ EVIDENCE MISSING

Auto-verified via PR Verify Tool

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.

[100 MRG] Feature: selection rectangular + fill/stroke

2 participants