Not getting transparency to work #196
Replies: 1 comment 7 replies
-
I said it before and I'll say it again: this is not an issue of the library but a general issue with PHP's GD image processing extension and how it handles transparency internally. This is beyond my knowledge and I'd suggest you check out StackOverflow or r/PHPhelp on reddit. I can help you with implementation details of my own library, such as doing all of that in a single class so that you don't have the mess all over your scripts. What i can't (or won't) do is help you to figure out how transparency is properly retained as it would require me to do the same research work. |
Beta Was this translation helpful? Give feedback.
-
Hi Codemasher!
Sukith and his team have unfortunately left me without a solution!
I now decided to omit the fixed size and only use scale(), furthermore I have included your suggestion from here: #189 (comment)
This is the current state of the scripts.
LogoOptions.php
separateData.php
( separates Url into param for QR Creation )
index.php
so if I use "000000" as foregroundcolor and "T" as indicator for transparent background (which creates $colorValueBack = [0, 250, 0]).
Nevertheless, the output is still without a transparency in the background.
I get following result:
What is going wrong?
thanks a lot for your help! I assume it only could be a small problem.
Another question: is there a possibility to store a "colour profile" in the finished PNG?
BR Rene
Beta Was this translation helpful? Give feedback.
All reactions