Currently the background is not transparent, this is what I did to fix it:
add this line ImageColorTransparent($target_image, $col[0]);
to the image method in the QRimage class, before ImageDestroy.like this:
ImageCopyResized($target_image, $base_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH);
ImageColorTransparent($target_image, $col[0]);
ImageDestroy($base_image);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to make the background transparent?
Yes, in the qrimage.php add this:
ImageColorTransparent($target_image, $col);
It works perfectly in most cases. However, when I import the image into Corel Draw, it's totally blank. But works on the web.
I just realized the Corel error has nothing to do with transparency. So I start a new thread.
Currently the background is not transparent, this is what I did to fix it:
add this line ImageColorTransparent($target_image, $col[0]);
to the image method in the QRimage class, before ImageDestroy.like this:
ImageCopyResized($target_image, $base_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH);
ImageColorTransparent($target_image, $col[0]);
ImageDestroy($base_image);
Is background opacity configurable with the SVG output?