Image_Transform: Detecting Image types
| From: | Peter Bowyer | Date: | Mon, 10 Jun 2002 07:32:00 +0000 |
| Subject: | Image_Transform: Detecting Image types | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-6832@lists.php.net to get a copy of this message | ||
Hi,
I've got problems with the NetPBM driver. NetPBM provides no method to detect image file type. How should I work it?
1) Make do with the very limited detection of GetImageSize - unsuitable really as Tiff support only added in 4.2, and no Bitmap support.
2) Use ImageMagick's convert library
I can't examine the file extension because when processing uploaded files they are assigned a random name without the extension, and this is the situation I'm dealing with at the moment.
Any suggestions? My site's broken until I can fix these problems with Image_Transform ;-)
Thanks
Peter
--oOo--
Narrow Gauge on the web - photos, directory and forums!
http://www.narrow-gauge.co.uk
--oOo--
Glenbranter - Scottish narrow gauge in 009
http://glenbranter.narrow-gauge.co.uk
--oOo--