Doc #50183 [Asn->Opn]: PNG alpha blending doesn't seem to work

From: Date: Tue, 24 Oct 2017 07:39:10 +0000
Subject: Doc #50183 [Asn->Opn]: PNG alpha blending doesn't seem to work
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15150@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=50183&edit=1 ID: 50183 Updated by: kalle@php.net Reported by: scratch65535 at att dot net Summary: PNG alpha blending doesn't seem to work -Status: Assigned +Status: Open Type: Documentation Problem Package: GD related Operating System: * PHP Version: * -Assigned To: pajoye +Assigned To: Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2017-01-23 14:06:53] cmb@php.net The images are not available anymore, so I can't exactly reproduce the issue. However, imagecopymerge() is supposed to *emulate* alpha by means of the $pct parameter. For instance, $pct==50 means that all pixels of the $src_im will be treated as if their alpha channel would be 50% (i.e. 64). In your case, you likely will want to set `alphablending($dest, false)` and use imagecopy() instead of imagecopymerge(). For more complex cases where $pct!=100 see my comment on bug #23815. As the documentation of imagecopymerge() is obviously not clear enough, I'm changing to doc bug. ------------------------------------------------------------------------ [2009-11-23 19:25:14] pajoye@php.net It looks to me to be a misusage for imagecopymerge. I have to test with your code to be sure. move to assigned. ------------------------------------------------------------------------ [2009-11-23 14:42:28] scratch65535 at att dot net I'm confused. The status shows as "no feedback" in r/o mode, but "open" in edit mode. I don't know what feedback was/is expected - as far as I'm aware, it's an open problem. Am I expected to post another comment every week to keep it open, or what? ------------------------------------------------------------------------ [2009-11-23 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-11-15 18:29:52] scratch65535 at att dot net So the documentation is broken then? "The two images will be merged according to pct which can range from 0 to 100. When pct = 0, no action is taken, when 100 this function behaves identically to imagecopy() for pallete images, while it implements alpha transparency for true colour images. " ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=50183 -- Edit this bug report at https://bugs.php.net/bug.php?id=50183&edit=1

« previous php.doc.bugs (#15150) next »