Comments (5)
Why don't you just use CSS to add a border to the QR code?
<img src='images/qrcode.php' style='border: 5px solid COLOR'>
Where COLOR
is a color that does not conflict with the current background.
from qr-code.
Yes, I use it, but the issue is if you download the code you don't have the border.
from qr-code.
If the user is downloading the image, then you lose all control of what background color they will have it set against, and any border set will be as useful as setting no border. You can always change the background color of the image opposed to setting a border, but still the same issue would happen if downloaded.
Just set a large enough padding, maybe?
$qrCode->setPadding(35); // 35px
Can you provide an example screenshot of a image with no border causing "interferences"? I've never come across a QR code that does not scan due to background color differences.
from qr-code.
Uffff I don't have any example ! but it's just a suggestion, if it's not possible no problem, the main is that the lib have a option to define a border in the image will can very nice !
from qr-code.
Recently the setDrawBorder() method was added that allows you to add a border to the generated code.
from qr-code.
Related Issues (20)
- Invalid image in README.md HOT 1
- Specifying QR code models HOT 2
- [Feature Request] PdfWriter sub-millimeter block size
- vcards HOT 1
- Problems using library HOT 1
- imagettfbbox(): Could not find/open font HOT 6
- Expected type 'Endroid\QrCode\ErrorCorrectionLevel\ErrorCorrectionLevelInterface'. Found 'Endroid\QrCode\ErrorCorrectionLevel\ErrorCorrectionLevelHigh'. HOT 1
- PArameter documentation HOT 2
- Background color and margin for logo HOT 1
- How can I add an image with input type file? HOT 1
- Message: Interface "Endroid\QrCode\QrCodeInterface" not found HOT 1
- Modifying cells of the matrix HOT 3
- how to set the version of a qrcode HOT 1
- Question : how is it possible not displaying the label (for accessibility reasons) ? HOT 2
- [Feature Request] Arabic RTL Labels HOT 1
- Call to undefined method Endroid\QrCode\QrCode::create() HOT 3
- Image embedded in email contains full path to image HOT 2
- Could it be that the readme is outdated? HOT 2
- [Feature Request] SvgWriter with choice of code generation policy - Option to Use Previous SVG Generation Method with <defs> HOT 4
- Version 2+ really slow (xdebug) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qr-code.