Bacon / BaconQrCode

QR Code Generator for PHP
BSD 2-Clause "Simplified" License
1.82k stars 208 forks source link

Somtimes weird renderings #129

Open CheeseTastisch opened 1 year ago

CheeseTastisch commented 1 year ago

I'm trying to create a QR code with some text in it. When trying, sometimes the QR code gets corrupted. (For example with a simple 'b' or 'A').

I tested some characters and found that 'a', 'c', '/' and 0-9 worked. However, 'A', 'b' and 'd' do not work. Such QR codes look something like this:

grafik In this example a 'b'.

My writer is created as follows:

$writer = new Writer(new ImageRenderer(new RendererStyle(100, 0, null, null, Fill::default()), new SvgImageBackEnd))

then I use it with $writer->writeString('...');.

Thanks for your help in advance.

DASPRiD commented 1 year ago

Can you create a reproduction-case in codesandbox?

CheeseTastisch commented 1 year ago

I did some more testing and found out, that on my Laptop (macOS) it works fine, only my PC (Windows) makes problems. Are there any known issues with Windows?

DASPRiD commented 1 year ago

There aren't, no.

DASPRiD commented 5 months ago

It makes even less sense to me, since you are using the SVG renderer. Did you use different browsers/viewers to look at the SVG between Windows and Mac?