QRcode::png($qr_code, "qrcodereplace.png", "L", 4, 4); ... $dompdf = new DOMPDF();
Using external libraries from quickchart.io or chart.googleapis.com () qr images was displayed correctly.
But using self generated image png, then image was saved to own server correctly (),
but after inserting it into PDF it is broken ()
I did image analysis of the png images with https://compress-or-die.com/analyze-process
And all not working images have: ColorType Palette
Each working ones have only difference here: ColorType RGB
Is there any way of changing ColorType of generated PNG or do you know any other issue that is causing this behaviour?
Hi,
I am adding a qr code image to a pdf using DOM:
QRcode::png($qr_code, "qrcodereplace.png", "L", 4, 4); ... $dompdf = new DOMPDF();
Using external libraries from quickchart.io or chart.googleapis.com () qr images was displayed correctly. But using self generated image png, then image was saved to own server correctly (), but after inserting it into PDF it is broken ()I did image analysis of the png images with https://compress-or-die.com/analyze-process And all not working images have: ColorType Palette Each working ones have only difference here: ColorType RGB
Is there any way of changing ColorType of generated PNG or do you know any other issue that is causing this behaviour?
Thank you very much for your help.
Best regards,
Thomas