|
|
| |
1. example does not work |
|
Reply |
|
|
 Mike Johnston | 2006-08-25 15:02:50 |
I had to change the code after line 11 in example.php
to get the sample to work
header("Content-type: image/png");
// imagepng($stereoIMG, "stereo.png");
imagepng($stereoIMG);
@imagedestroy($stereoIMG);
The class seems to work just fine.
Mike J. |
| |
2. Re: example does not work |
|
Reply |
|
|
 Stefan Saftescu | 2006-08-25 17:32:21 - In reply to message 1 from Mike Johnston |
It was something like this:
//header("Content-type: image/png");
imagepng($stereoIMG, "stereo.png");
This saves the file as a png image
If you want the image to be displayed on the page, you "uncomment" the header function and cut ', "stereo.png"'.
header("Content-type: image/png");
imagepng($stereoIMG, "stereo.png"); -> imagepng($stereoIMG);
Or am I wrong? |
| |
3. Re: example does not work |
|
Reply |
|
|
 Mike Johnston | 2006-08-25 18:09:33 - In reply to message 2 from Stefan Saftescu |
| You are correct. |
| |
4. Re: example does not work |
|
Reply |
|
|
 Jean Pierre Daviau | 2006-08-25 21:38:18 - In reply to message 2 from Stefan Saftescu |
| You are correct. |
| |
5. Re: example does not work |
|
Reply |
|
|
 fildevil | 2013-02-09 13:29:08 - In reply to message 1 from Mike Johnston |
Good script, thank you very much.
Please, it's possible to show a lite JPG file in my browser?
Thanks. |
|