JPEG filetype/imagecreatefromjpeg() unrecognized with upload
Posted: Thu Aug 24, 2006 8:42 pm
First, to get it out of the way: I'm using dajoob.com as my server, since Ripway doesn't allow e-mail or uploads via PHP.
I'm working on a Twisted Designs GFX - The Site kind of thing. I have so far gotten it to work where people can upload their own images into a global TDG: The Site gallery, along with artist, title, and description of the image.
It all seemed to work, until I tried a JPEG. The MIME filetype that is being sent to the PHP script for JPEG images is a blank string, instead of the expected "image/jpeg" or even "image/jpg". As well, the imagecreatefromjpeg() function is unknown to PHP on my site, yet all the other imagecreatefrom* functions work. Anyone know why this is happening?
As well, I haven't found a way to create an image resource from a BMP (WBMP is apparently different). Is there one?
-IMP

I'm working on a Twisted Designs GFX - The Site kind of thing. I have so far gotten it to work where people can upload their own images into a global TDG: The Site gallery, along with artist, title, and description of the image.
It all seemed to work, until I tried a JPEG. The MIME filetype that is being sent to the PHP script for JPEG images is a blank string, instead of the expected "image/jpeg" or even "image/jpg". As well, the imagecreatefromjpeg() function is unknown to PHP on my site, yet all the other imagecreatefrom* functions work. Anyone know why this is happening?
As well, I haven't found a way to create an image resource from a BMP (WBMP is apparently different). Is there one?
-IMP