Re: [PHP] Imagecopyresampled creates black pictures
- From: tedd@xxxxxxxxxxxx (tedd)
- Date: Mon, 30 Oct 2006 10:52:30 -0500
At 9:52 AM +0100 10/30/06, Martin Hochreiter wrote:
What is wrong here?
Martin:
Damn, that's a lot of code to do something pretty simple. I had no problems uploading and resampling your image with a lot less.
Try using ob_start() and ob_end() to grab your image.:
ob_start(); imagejpeg($new,$dir.'view/'.$name,85);
ob_end_clean();
hth's
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
.
- Follow-Ups:
- Re: [PHP] Imagecopyresampled creates black pictures
- From: Martin Hochreiter
- Re: [PHP] Imagecopyresampled creates black pictures
- References:
- Imagecopyresampled creates black pictures
- From: Martin Hochreiter
- Imagecopyresampled creates black pictures
- Prev by Date: Re: [PHP] Encoding PC-850
- Next by Date: Re: [PHP] strange problem with count()
- Previous by thread: Re: [PHP] Imagecopyresampled creates black pictures
- Next by thread: Re: [PHP] Imagecopyresampled creates black pictures
- Index(es):