simple-qrcode
simple-qrcode copied to clipboard
Black and white problem merging logos
Hi there ! The problem is that if I merge a colored logo in qrcode its color background effects the logo's origional color... Please guide me if there is any solution for this... the merged logo type in png....
Please provide the full code sample and images you used
[Project deleted] Sorry for getting late, because i was busy doing some work and this app is nested with too many things, so the best way was to make a mini project to demonstrate the application, I just got time and made a mini app for you....
because i work on windows and xampp the steps are following:
- unzip file to htdocs.
- create a new database in phpmyadmin with name "qrcode_app".
- run php artisan migrate
- the app will be on homepage
the php for app is in the following files:
- QrcodeController
- QrcodeApp(App/Repositories/Qrcode/QrcodeApp.php)
- LogosController (for logo uploads)
- customize-qr-code.blade.php(/views)
- qrcode_image(just for rendering the image after ajax call)
- qr_scripts.blade.php(/view) (the jquery i used for the app)
Here are pictures i am using as logos... kindly guide me , so i can solve this issue. Thanks
if you face any issues regarding the code please leave a message, and also if you want me to make a manual to use the app kindly leave a message Thanks
Hi there! Hope that you are fine. Could you manage some time to have a look on my issue ?
Remove this function backgroundColor when generating code. I can't give you more details about that function but it works on my end when I removed it.
Let me know if this works in your end.
I am having the same issue. Can you please post your ans?
I'll accept a PR for this.
I have the same issue, I have used the merge
function to add the logo in the QR
But I want the QR to be png
with transparent background
The issue is the logo and QR has been changed color and it didn't work as transparent background Here is my code:
QrCode::format('png')->size(1500)->color(52, 49, 52)->backgroundColor(0, 0, 0, 0)
->merge(public_path("img/logo.png"), .5, true)->errorCorrection('H')
->generate('https://www.example.com', public_path("uploads/result.png"));
And here is the result: