Posted by Mike Willbanks on 10/25/05 05:20
> I am testing it on a single file, but it destroys the image. Does
> imagejpeg write the new file in the current directory ? Or do I need to
> do an fputs() ?
Close, it is actually the current working directory. So if this was
done via include it will be in that path. Also what I suggest doing is
checking what the program is doing. My thought is that you have a
notice or warning being generated and that is causing the corruption of
the image, if it is being generated at all.
Try just letting it output to the browser without a header. You should
be able to see more details that way. Also turn your error reporting to
E_ALL via error_reporting(E_ALL); at the beginning of the script.
--
Mike Willbanks
Zend Certified Engineer
http://www.digitalstruct.com
Navigation:
[Reply to this message]
|