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

Eye corner radius / larger round style? #250

Open
zanethefox opened this issue May 7, 2022 · 5 comments
Open

Eye corner radius / larger round style? #250

zanethefox opened this issue May 7, 2022 · 5 comments

Comments

@zanethefox
Copy link

Hi there, first I want to say thanks for the great QR code maker. I am working on created a stylised QR code that has very rounded corners to match the style of the page. I am wondering if it's possible to make the eyes even rounder?

Currently I can see the QR code eyes corner radius is the same as the blocks, so I assume the value is connected to both and can not extend further than the small blocks. But would it be possible to either extend or make a separate value this to make the eyes even more rounded?

For example I am using style('round', 0.999) to achieve this:
image

But it's still very squared off looking, as the eye is much larger in proportion than the blocks

Here's an example of what I would like to create:
IMG_8A2C770C5DE0-1

If you have any pointers where I could customise this I would be very thankful!

@SimplyCorey
Copy link
Member

This is possible, but you would need to create a new eye renderer. See https://github.com/Bacon/BaconQrCode/blob/master/src/Renderer/Eye/SimpleCircleEye.php

@zanethefox
Copy link
Author

Brilliant, thanks a lot!

@liliumdev
Copy link

Amazing, thanks!

@shoaib039
Copy link

image

Please someone help me to make QrCode Eye like this, if anyone got solution please share with me, i waste whole 2 days but unable to make like this, any help from anyone?😔

@enpesavento
Copy link

enpesavento commented Jan 5, 2023

If it helps I did some experimenting by creating a new eye renderer as suggested by @SimplyCorey and got a similar result:

Bacon/BaconQrCode#116 (comment)

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

No branches or pull requests

5 participants