#39353 [Bgs]: more imagecopyresized() alpha problems
| From: | seth at pricepages dot org | Date: | Sat, 04 Nov 2006 18:10:11 +0000 |
| Subject: | #39353 [Bgs]: more imagecopyresized() alpha problems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104408@lists.php.net to get a copy of this message | ||
ID: 39353
User updated by: seth at pricepages dot org
Reported By: seth at pricepages dot org
Status: Bogus
Bug Type: GD related
Operating System: Mac 10.4
PHP Version: 5CVS-2006-11-02 (snap)
Assigned To: pajoye
New Comment:
But I *still* can't produce the image that I want. I simply
want to enlarge $small. How can I do this?
Previous Comments:
------------------------------------------------------------------------
[2006-11-04 17:50:39] pajoye@php.net
"Shouldn't it be default?"
Backward compatibility... GD is an old library. But things are getting
better.
No bug > bogus.
------------------------------------------------------------------------
[2006-11-04 17:48:46] seth at pricepages dot org
Oh! No, I didn't realize imagesavealpha() existed. Why is
saving the alpha a separate function? Shouldn't it be default?
------------------------------------------------------------------------
[2006-11-04 17:45:05] seth at pricepages dot org
I am simply trying to enlarge the original image. I can't find
a work-around in PHP, but I can create the image in Adobe
Photoshop.
This is what I'm attempting to create:
http://pricepages.org/temp/partialTrans2.png
By the way, this image is the outline of Bermuda. :)
------------------------------------------------------------------------
[2006-11-04 17:42:49] pajoye@php.net
Another thing you may not know is how to preserve the alpha channel
information on save:
http://blog.thepimp.net/misc/bug39353_with_alpha.png
you have to use imagesavealpha($img,true); before calling imagepng.
------------------------------------------------------------------------
[2006-11-04 17:26:18] pajoye@php.net
"I thought that a color with alpha = 127 will produce the
same results as a color marked as transparent. I want the
contents of $small to overwrite everything in $img. This is
not correct?"
But this color (imagecolortransparent($small)) *IS* the transparent
color and is ignored on copy.
http://blog.thepimp.net/misc/bug39353_out.png
is it not what you
expect?
If not, provide an image to show what you expect.
------------------------------------------------------------------------
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
http://bugs.php.net/39353
--
Edit this bug report at http://bugs.php.net/?id=39353&edit=1