On Tuesday 06 July 2004 19:48, Victor Spång Arthursson wrote:

> Creating a transparent png using GD and PHP is (almost) no problem, but
> it's impossible to save…

Here you say it's impossible to save, but then further down you contradict 
this by saying that you did manage to save it - only the transparency 
disappears.

Please try to describe your problem accurately so that you don't confuse the 
people who may want to help!

> No matter what I try, the saved image wont remember that it's
> transparent. I suspect the reason it works "on the fly" is because I
> manually set the header to image/png, but if I try so save the stream
> to a file, the transparency disappears…

OK try this:

1) stream the image, then in your browser save the image to file.

2) don't stream the image, instead save it as file on the server, then ftp (or 
whatever) the file back to your local computer.

3) now compare the two files to see if they are the same. In Windows use the 
file compare program 'fc', in *nix use 'diff'. Remember to do a binary 
comparison in both cases.

If both files are exactly the same then you've got a crappy browser - it 
should display an image file in the same manner regardless of what headers 
came with it.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The avoidance of taxes is the only intellectual pursuit that carries any
reward.
                -- John Maynard Keynes
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to