Hi all,
I am trying to use getImageSize() on imagedata I am receiving in an e-mail and collecting with imap_fetchstructure() et al. What I have in my $image variable is just the actual image data - no headers or anything, and of course getImageSize() doesn't work that way.

Now, the question is - does anybody have some code which will work with binary image data? Preferably with both JPG AND GIF data...

My only other option right now as I see it would be to create a file on the filesystem, write the image data to it and then use getImageSize() on it, but that seems like a bad solution for several reasons, some of them being speed and file permissions.

Thankful for any help!

//Mans


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to