jonty Posted June 8, 2008 Share Posted June 8, 2008 Hi, imagegif() either outputs an image resource to the screen, or writes it to a gif file if a filename is passed. I however wish to get it's output into a string, without having to wastelessly write the file and read it back in. Anyway of capturing standard output? Quote Link to comment Share on other sites More sharing options...
448191 Posted June 8, 2008 Share Posted June 8, 2008 You can use ob_start() and ob_get_contents(), OR you can try if it will accept the php://memory stream wrapper as filename. Quote Link to comment Share on other sites More sharing options...
jonty Posted June 8, 2008 Author Share Posted June 8, 2008 Ah cool - thanks. I never would have tracked that down. I coudn't find good documentation on the memory wrapper, but the ob_start method worked fine. Thanks again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.