Re: Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

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

 



On Fri, January 25, 2008 2:43 am, Emil Edeholt wrote:
> I have a website where people can upload photos and it creates
> previews.
> My problem is with pictures with big dimensions like 12000px height
> for
> example where the script times out. I've seen other sites that seems
> do
> be able to do this faster. I use gd to scale the image. Is there a
> faster way of doing it? Is ImageMagick better for example?

Create the preview ONCE in a cron job after the upload and save it as
a file.

PHP itself is not timing out here -- the browser is.

Time spent in the guts of GD doesn't "count" for PHP time_limit.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

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