Q: Use getImageSize() on image data from email?

From: Date: Thu, 05 Dec 2002 15:19:21 +0000
Subject: Q: Use getImageSize() on image data from email?
Groups: php.general 
Request: Send a blank email to php-general+get-127154@lists.php.net to get a copy of this message
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

« previous php.general (#127154) next »