Hello all,

I was wondering if anyone ran across these three problems that I have been
having.

I have been developing two php scripts that dynamically build a JPEG image
from a series of PNG images.  I was originally using PHP 4.0.5 but wanted to
use the true colour support of PHP 4.0.6.  However, 4.0.6 has the font
problem.  I have resolved that by finding out that if I create the folder
\usr\share\fonts\truetype and put my fonts in there, the TTF functions work
correctly.  When I did that, the script was able to generate the image, but
the font was all screwed up, almost as if the font was corrupted.  I have
replaced the font several times and the problem still occurs.  If I use the
same script under 4.0.5, there is no problem, and no true colour.  Has
anyone else had this problem?

The other problem that I have had has to do with the ImageCopy function.  I
use the function to copy the various PNG images on to the main image which
eventually gets outputted as a JPEG image.  Under 4.0.5 the script runs
without a problem.  However, under 4.0.6 the script appears to go into an
infinite loop.  The image never gets generated and the server eventually
times out the connection.  By using a series of die() statements, I was able
to find out that the ImageCopy function is where the script seems to lockup.
The thing is, it isn't on the first ImageCopy but on the second one that I
use and every one after that.  I managed to work around it via using
ImageCopyMerge with 100% opacity.  Has anyone had this problem either?

The last problem that I see to be having is to do with the PNG
transparencies.  The image that is generated has a background that is the
full size of the image.  The PNG images that I copied on top of the
background have a transparency.  The idea is that when the PNG images are
laid on top of the background, the background can still show through.  The
problem that I seem to be having is that when I use the PNG transparent
images under 4.0.6, the transparency doesn't work and as a result chunks of
the image are blocked where they shouldn't be.

I am not quite sure what the actual problems are of these three.  I would
really like to use 4.0.6 for the true colour, but it seems that I am running
into severe problems.  If anyone could shed some light on these problems, I
would really appreciate it.


--

Richard Morris
[EMAIL PROTECTED]





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to