Re: Timing problem, putting PNG into PDF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/8/12 Brian Dunning <brian@xxxxxxxxxxxxxxxx>:

> 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?

It's more likely you're hitting a memory limit in your script. Pare
your script down to just the resize action, and turn error reporting
on.

What function are you calling to do the resize? It shouldn't return
until it's finished processing.

BTW, ImageMagick produces smoother results than GDLib when resizing.

-- 

http://www.otton.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux