Timing problem, putting PNG into PDF
| From: | Brian Dunning | Date: | Tue, 12 Aug 2008 01:07:31 +0000 |
| Subject: | Timing problem, putting PNG into PDF | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-277991@lists.php.net to get a copy of this message | ||
I'm using GD to crop & save an uploaded image, and then embedding it into a PDF made with FPDI. It works great when the image is small or low-res. When the uploaded file is bigger, more than a couple hundred K or so, it fails. I think that the image is not done writing yet by the time I try to do the $pdf->Image. Any suggestions? Some way to force it to hang out and pause until the image is done writing?