Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add SvgRoundedModuleDrawer class for SVG QR codes with rounded corners #393

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tobiasploetz
Copy link

Add SvgRoundedModuleDrawer for SVG QR codes with rounded corners

Description

This PR adds a new SvgRoundedModuleDrawer class that enables the creation of SVG QR codes with rounded corners. The implementation is similar to the existing RoundedModuleDrawer for PIL images but adapted for SVG path generation.

Features

  • New SvgRoundedModuleDrawer class that extends SvgPathQRModuleDrawer
  • Supports customizable corner radius via the radius_ratio parameter
  • Intelligently rounds corners based on neighboring module information

(mostly written by Cursor.AI)

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.

None yet

1 participant