Menu

Transparent Background?

gearmonkey
2011-08-05
2020-08-25
  • gearmonkey

    gearmonkey - 2011-08-05

    Is there a way to make the background transparent?

     
  • Luigi Vento

    Luigi Vento - 2012-02-16

    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.

     
  • Luigi Vento

    Luigi Vento - 2012-03-01

    I just realized the Corel error has nothing to do with transparency. So I start a new thread.

     
  • padraicseosamh

    padraicseosamh - 2013-11-21

    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);

     
  • David Headrick

    David Headrick - 2020-08-25

    Is background opacity configurable with the SVG output?

     

Log in to post a comment.

MongoDB Logo MongoDB