Login   Register  
PHP Classes
elePHPant
Icontem

example does not work

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Stereo Anaglyph Images  >  All threads  >  example does not work  >  (Un) Subscribe thread alerts  
Subject:example does not work
Summary:example does not work
Messages:5
Author:Mike Johnston
Date:2006-08-25 15:02:50
Update:2013-02-09 13:29:08
 

  1. example does not work   Reply  
Picture of Mike Johnston
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  
Picture of Stefan Saftescu
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  
Picture of Mike Johnston
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  
Picture of Jean Pierre Daviau
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  
Picture of fildevil
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.