Skip to content

Conversation

@ryanfowler
Copy link
Owner

No description provided.

@ryanfowler ryanfowler requested a review from Copilot January 24, 2026 21:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the blur parameter to accept either a boolean value (for default blur behavior) or a numeric sigma value (for custom blur intensity control). This provides users with fine-grained control over blur effects while maintaining backward compatibility.

Changes:

  • Updated type definitions to allow blur to accept boolean | number
  • Implemented parseBlur function to parse and validate blur values with bounds (0.3-1000)
  • Modified blur application logic to use custom sigma when numeric value provided
  • Added comprehensive test coverage for different blur intensities

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
lib/types.ts Updated ImageOptions interface to allow blur as boolean or number
lib/server.ts Added parseBlur function with validation and updated Options interface
lib/image.ts Modified blur application to use sigma value when number is provided
lib/image.test.ts Added tests for boolean blur, sigma values, and different intensities
README.md Updated documentation to reflect new blur parameter capabilities

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ryanfowler ryanfowler merged commit 70f5a7c into main Jan 24, 2026
3 checks passed
@ryanfowler ryanfowler deleted the blur-value branch January 24, 2026 21:23
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.

2 participants