Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Google Kreme
On 18 Oct 2006, at 09:56 , Richard Lynch wrote: Kind of a hack, but think of it as an "import filter" and maybe even program it generically enough that you *CAN* do more "import filters" and then you open up a world of possbilities for other image formats to be supported some day in the future.

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Richard Lynch
On Wed, October 18, 2006 6:44 am, Angelo Zanetti wrote: > We have written an app in PHP4 that receives images from mobile phones > that are taken with the camera, we have found a problem that some of > the > images are corrupt and we have determined that it is because of Nokia > VGA cameras that ha

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Google Kreme
On 18 Oct 2006, at 05:44 , Angelo Zanetti wrote: We also found another possible solution being that we use ImageMagick to convert the jpeg to a jpeg, then it will load properly. But now we would have to convert each image that comes in and maybe only 10% of the images come from a Nokia VGA

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Hidayet Dogan
Oh and also at: http://www.php.net/manual/en/function.imagecreatefromstring.php check Paul Visco's solution. On Wed, 18 Oct 2006, Hidayet Dogan wrote: Hi Angelo, I used to have a same problem when I were programming MMS message parser. You can find different solutions at the PHP Manual web

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Hidayet Dogan
Hi Angelo, I used to have a same problem when I were programming MMS message parser. You can find different solutions at the PHP Manual web site; http://www.php.net/manual/en/function.imagecreatefromjpeg.php (check user comments). I've used one of these solutions but I don't remember exactly