How to make circle border like this in Png #267
Answered
by
codemasher
AmjadGhzlangit
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
codemasher
May 24, 2024
Replies: 1 comment 4 replies
-
I don't see the image you uploaded but I assume it's a screenshot of the round quietzone SVG example? Either way, the simple answer is: don't. Render your QR Code in SVG and convert it as shown in several examples. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You don't need to double ping me, time zones exist.
There is an SVG example for exactly this over here https://github.com/chillerlan/php-qrcode/blob/v5.0.x/examples/svgWithLogoAndCustomShapes.php
It would work a bit different and probably more complex in GD/Imagemagick: you would need to skip the generation of the finder patterns in the respective
module()
methods, and then draw replacements (or insert images) in their positions.You can calculate the positions from the image size:
7 * $this->scale
$this->matrix->getVersion()->getDimension() * $this->scale
$this->options-…