ID:               19133
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Closed
 Bug Type:         GD related
 Operating System: Win2K
-PHP Version:      4.2.2
+PHP Version:      4.2.3
 New Comment:

I tried this in 4.2.3, and my tests still fail.  Can you tell me what
you did in your tests?


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

[2002-10-06 02:08:00] [EMAIL PROTECTED]

I verified that this works correctly in the bundled GD2 in PHP 4.3.

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

[2002-08-29 16:32:16] [EMAIL PROTECTED]

Sorry, we have to stick with version 4.2.2 for now.  

Can anyone think of any possible workarounds?

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

[2002-08-28 13:57:34] [EMAIL PROTECTED]

This might be fixed with the bundled verion of GD2 available with
4.3.0. Please try a snapshot from http://snaps.php.net.

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

[2002-08-28 13:02:59] [EMAIL PROTECTED]

Sample script:

<?php

$Png0 = "c:\\thumbs\\TERRAIN_color_big.PNG";
$Png1 = "c:\\thumbs\\Z00_LYR3_MAP_T_STATES_CYAN.png";
$Png2 = "c:\\thumbs\\eta_big.png";
$Timg= "c:\\thumbs\\test.png";

$Tim0= ImageCreateFromPng($Png0);
$Tim1= ImageCreateFromPng($Png1);
$Tim2= ImageCreateFromPng($Png2);

ImageCopyMerge($Tim0,$Tim1,0,0,0,0,649,548,100);
ImageDestroy($Tim1);
ImageCopyMerge($Tim0,$Tim2,0,0,0,0,649,548,100);
ImageDestroy($Tim2);
ImagePng($Tim0,$Timg);
ImageDestroy($Tim0);

?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<STYLE><!--
.LYR0 {position: absolute; TOP:800; LEFT:10;z-Index:0; }
.LYR1 {position: absolute; TOP:800; LEFT:10;z-Index:1; }
.LYR2 {position: absolute; TOP:800; LEFT:10;z-Index:2; }
--></style>
</head>
<body>

<!-- display the composite image -->
<img src=<?php echo "$Timg"; ?>><br><br>

<!-- for comparison, display the PNGs layered atop one another -->
<span class=LYR0><img src=<?php echo "$Png0"; ?>></span>
<span class=LYR1><img src=<?php echo "$Png1"; ?>></span>
<span class=LYR2><img src=<?php echo "$Png2"; ?>></span>

</body>
</html>


Note that with php_gd2, the composite image "$Timg" ends up identical
to $Png3.  With php_gd, it looks identical to the three PNGs layered
atop one another using CSS (which is what I believe to be the proper
behavior).

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

[2002-08-28 12:27:46] [EMAIL PROTECTED]

sample script?

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

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

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

Reply via email to