PHP crashes on imagecreatefromjpeg()
Posted: Tue Aug 08, 2006 6:47 am
I have a picture upload script that runs smoothly, untill I tried uploading jpeg from my digital camera. The same problem also happend for my friends camera picture too, too different brands. I'am not quite sure what model it was, but Olympus defently. (I lost my camera...)
Size is not a matter, done some testes on that.. and my upload limits in php.ini is far beyond the pictures size.
The script crashes on imagecreatefromjpeg(), I've no idea how to fix it.. I read some comments on the issue at http://php.net/imagecreatefromjpeg , something about the image is not fully build. But that didn't help me out..
There is a program called: jhead that might solve the problem, but unfortnatly I don't the possibility to install it:
jhead: http://www.sentex.net/~mwandel/jhead/
Is there anything I can do, to fix this problem? So that I can upload my cameras jpeg's too..
Thanks.
PHP version: PHP Version 4.4.0-pl1-gentoo
GD: bundled (2.0.28 compatible)
Size is not a matter, done some testes on that.. and my upload limits in php.ini is far beyond the pictures size.
The script crashes on imagecreatefromjpeg(), I've no idea how to fix it.. I read some comments on the issue at http://php.net/imagecreatefromjpeg , something about the image is not fully build. But that didn't help me out..
Code: Select all
$im = imagecreatefromjpeg($_FILES['upload_pic']['tmp_name']);jhead: http://www.sentex.net/~mwandel/jhead/
Is there anything I can do, to fix this problem? So that I can upload my cameras jpeg's too..
Thanks.
PHP version: PHP Version 4.4.0-pl1-gentoo
GD: bundled (2.0.28 compatible)