Background on imageWithLogo #122
-
Thanks for this great project! I'm using the imageWithLogo example and I end up with a background color '#f5f5f5'. The 'imageTransparent' and 'imageTransparencyBG' QROptions don't seem to work. How do I get these options working? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi! I've added a bit of documentation re this in #121 - see this comment for more info. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Ok, i think I've found the culprit. I've added a line to ensure the circular dots are actually round on low scales (scale <= 20) - internally it scales the image up, draws the dots and scales it back to the expected size - all while using the |
Beta Was this translation helpful? Give feedback.
Ok, i think I've found the culprit. I've added a line to ensure the circular dots are actually round on low scales (scale <= 20) - internally it scales the image up, draws the dots and scales it back to the expected size - all while using the
IMG_BICUBIC
filter - which is what messes with the background color. So try to setQROptions::$scale
to a value greater than 20 or setQROptions::$drawCircularModules
tofalse
.Alternatively i would recommend to use the SVG output for more crisp circles and colors. :)