On Thu, 5 Dec 2002, Mans Jonasson wrote:

> 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.
(snip)

  The imageCreateFromString() function may help you here, this is exactly
  what it's for.  Unfortunately many people have had trouble with it.  In
  your situation, I'd write the thing out to a temporary file.

  In that case I'd consider using ImageMagick's identify command rather
  than getImageSize(), since it handles many more image types.  Depending
  on what you need you may find the -verbose option helpful, as it gives
  tons of information, but is slow...

-- 
   Morgan Hughes
   C programmer and highly caffeinated mammal.
   [EMAIL PROTECTED]
   ICQ: 79293356




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

Reply via email to