Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Logo NOT added! || @svgWithLogo.php & @svgWithLogoAndCustomShapes.php #288

Answered by codemasher
X-Nightmare-X asked this question in Q&A
Discussion options

Hey guys, i am testing the lib and i got it running within a website where qr-interactive works and the settings on the site and the other stuff.
Now i want to "brand" my QR Codes.
But i am getting problems with running the QR generator with adding logos.
Both examples mentioned in the title are running and generate QR Codes but without a logo added in the middle.
I didnt change much from the original examples.
Testet with "original" github.svg and with my own .svg but it is not working.

Where is the failure, what am I doing wrong?

I want to add the QR Logo within the site with the qr-interactive script, so that i can click "branded" or not like the other settings on the html page.

You must be logged in to vote

Can you please describe what exactly is the issue and maybe post an code sample of what you're trying to achieve? btw these are the examples for v5.x https://github.com/chillerlan/php-qrcode/tree/v5.0.x/examples

Replies: 1 comment 9 replies

Comment options

Hi, are you using the examples that match your installed library version? See https://github.com/chillerlan/php-qrcode?tab=readme-ov-file#documentation

You must be logged in to vote
9 replies
Comment options

That's the whole point - the examples are not necessarily interchangeable between major versions.

Comment options

Ahhh okey xD

Do you know then if the both examples mentioned above are able to run with v5.0.2. ?
I installed it again and I am testing it in a few minutes.

If they are not running with v5.0.2 what do i have to change?
Thanks for answering so fast.

Comment options

Ok, I dont know what to do :/
Its working but without the logo again.
I am not that good to understand, what to change, that the logo will be inserted in the generated QR.

That would be so cool, if that would work.

The library/project is so cool at all. But that would be extra nice, if i could brand my QRs.

I am very thankful if you would help me getting it to work. And if I see my failure or what i have to change then i could evtl. learn what i have to do in the future.

Comment options

Can you please describe what exactly is the issue and maybe post an code sample of what you're trying to achieve? btw these are the examples for v5.x https://github.com/chillerlan/php-qrcode/tree/v5.0.x/examples

Answer selected by X-Nightmare-X
Comment options

JEAH NICE :D
Thanks for the link.
That worked directly.
I only wanted to get a QR code with a logo inside.
The version u send me, worked with the v5.0.2.

Sorry, i didnt know, that there are different version trees.
I am not so familiar with GitHub and finding that.
Sorry for taking your time, for that easy solution!

BIG THANKS to you!!

Comment options

The only thing, is that now I have to get my added logo not so big. Its out of the box (like too big) for the box. How does it size automatic? With Github.svg it worked. With mine not. I can only see the top left corner of the svg

Comment options

Here's a bit about how to properly scale SVG logos: #268 (reply in thread)

Comment options

Wait no here's the full thread including explanations #286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /