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

Black and white problem merging logos #225

Open
nouman1105 opened this issue Mar 31, 2021 · 9 comments
Open

Black and white problem merging logos #225

nouman1105 opened this issue Mar 31, 2021 · 9 comments

Comments

@nouman1105
Copy link

nouman1105 commented Mar 31, 2021

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....

qr-code (16)
qr-code (13)
qr-code (12)

@SimplyCorey
Copy link
Member

Please provide the full code sample and images you used

@nouman1105
Copy link
Author

nouman1105 commented Apr 27, 2021

[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:

  1. unzip file to htdocs.
  2. create a new database in phpmyadmin with name "qrcode_app".
  3. run php artisan migrate
  4. the app will be on homepage

the php for app is in the following files:

  1. QrcodeController
  2. QrcodeApp(App/Repositories/Qrcode/QrcodeApp.php)
  3. LogosController (for logo uploads)
  4. customize-qr-code.blade.php(/views)
  5. qrcode_image(just for rendering the image after ajax call)
  6. qr_scripts.blade.php(/view) (the jquery i used for the app)

@nouman1105
Copy link
Author

3. Make brand logos.zip

Here are pictures i am using as logos...
kindly guide me , so i can solve this issue. Thanks

@nouman1105
Copy link
Author

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

@nouman1105
Copy link
Author

nouman1105 commented May 8, 2021

Hi there!
Hope that you are fine.
Could you manage some time to have a look on my issue ?

@deven-lopen
Copy link

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.

@rupalgohel
Copy link

I am having the same issue. Can you please post your ans?

@SimplyCorey
Copy link
Member

I'll accept a PR for this.

@abdulkareem-f
Copy link

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:
re_trans (1)

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