ID:               43508
 Updated by:       [EMAIL PROTECTED]
 Reported By:      vbhunt at silverfox dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         GD related
 Operating System: Windows XP Professional Ver 2SP2
 PHP Version:      5.2.5
 Assigned To:      pajoye
 New Comment:

There is no transparent color (or known as background color). The
alert.png for example uses the alpha channel, and the borders of the
images is filled with the white color and 100% alpha.

A png image can use either the alpha channel or the transparent color
but not both.


Previous Comments:
------------------------------------------------------------------------

[2008-11-02 18:15:25] vbhunt at silverfox dot com

Sorry, permissions were changed in a security sweep.  I've corrected
the permissions so you can get at the images:

https://www.republiclocomotiveworks.com/buttons/icons/alert.png

https://www.republiclocomotiveworks.com/buttons/icons/<filename>.png

replace <filename> with one of the following as the first example
shows.

alert, group, home, left, mail, right, send, stop, stop1, trash, user

Again, thanks for looking at this!
/bruce

------------------------------------------------------------------------

[2008-11-02 15:15:24] [EMAIL PROTECTED]

None of the images work, please provide a link to existing images.

------------------------------------------------------------------------

[2008-11-02 13:20:04] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------

[2007-12-06 06:50:35] vbhunt at silverfox dot com

function tinyTranspng( $filename )
{
  $rsc = imagecreatefrompng( $filename );
  if ( $rsc )
  {
    $tpColor = imagecolortransparent($rsc);
    $msg = "<p align='center' > " . $filename  . ( ($tpColor == -1 ) ?
           " HAS NO TRANSPARENCY.&nbsp" : " has transparency!&nbsp" );
  }
  else
    $msg = "<p > " . $filename . " is not a png file.";
  echo $msg;
  echo "<img src='$filename' border=0 > </p>\n";
}

http://www.republiclocomotiveworks.com/buttons/test.php runs the tests
on our current web site.  This test page generates a call to the above
php function for each of the icons in /buttons/icons.
  
The url for each of png icon files is at:

http://www.repbuliclocomotiveworks.com/buttons/icons/<filename>.png

where <filename> is one of:

alert, group, home, left, mail, right, send, stop, stop1, trash, user.

Note that RepublicLocomotiveWorks is not yet running PHP 5.2.5 -- we
are preparing to upgrade.  

Regards and thanks for looking at this issue.
/bruce

------------------------------------------------------------------------

[2007-12-05 22:09:31] [EMAIL PROTECTED]

Please provide a small script. In your case, open a png, check the
transparent color.

I also need the images you use for your tests. Please provide a link to
them.

------------------------------------------------------------------------

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/43508

-- 
Edit this bug report at http://bugs.php.net/?id=43508&edit=1

Reply via email to