PHP Classes

hi

Recommend this page to a friend!

      floStereoImg  >  All threads  >  hi  >  (Un) Subscribe thread alerts  
Subject:hi
Summary:problem
Messages:2
Author:PersonalTed
Date:2011-09-07 18:12:21
Update:2011-09-07 18:48:34
 

  1. hi   Reply   Report abuse  
Picture of PersonalTed PersonalTed - 2011-09-07 18:12:22
buenas tardes.
Se ve interezante su ejemplo. tengo un problema que no logro ejecutarlo. cuando lo hago entonces me da en la pagina un codigo y no la imagen. Algun requerimiento para ejecutar el ejemplo en el navegador?

gracias

  2. Re: hi   Reply   Report abuse  
Picture of Joshua hatfield Joshua hatfield - 2011-09-07 18:48:34 - In reply to message 1 from PersonalTed
hola,

I imagine it would be pretty hard to navigate without a decent understanding of English :). I suppose there are a few requirements for the class to run. First, I think that the gd library has to be installed for image resources in general, plus there's a jpeg library and I think a png library (though one or both may be in gd).

Additionally, there are pretty decent memory requirements if you are doing larger images. The larger the images, the larger the memory requirements. At the moment, I think with resource destruction turned on, the max image resources it will use at one time would be 3 (4 if you count that the non-anaglyph stereo images are double size), so multiply that times the size of one eye's single image.

It also requires PHP5.

I mentioned this in the class file and sample.php, the disk caching is not tested, and actually I realize now it needs much work to be useful anyways. I have some ideas for memory management but haven't started anything with them yet.

Additionally, only 1 sample image is included in the class, stereo.pns. If the sample.php in the zip file is run as is with all the other files in the same directory, it would (provided there are write permissions) create left and right jpg and png files. You may want to check to see if there are write permissions in the directory you are executing it.

Other than that, without an error message, I don't know what more I can offer.