By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,407 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Making GD2 faster

P: n/a
no
I'm using PHP with GD2 to create image thumbnails, but it gets
extremely slow when processing large images (1600x1200 or more). I
had to raise max_execution_time to more than 120 secs and I don't
think my client is going to like that :( I guess I could switch to
bilinear resizing but it looks really awful.

Are there any tricks to speed up GD2 a little?

Thanks in advance!
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
I'm also interested, I found a faster CPU helped, and a little more ram,
but don't know if there is any tricks to it.

no@email.supplied wrote:
I'm using PHP with GD2 to create image thumbnails, but it gets
extremely slow when processing large images (1600x1200 or more). I
had to raise max_execution_time to more than 120 secs and I don't
think my client is going to like that :( I guess I could switch to
bilinear resizing but it looks really awful.

Are there any tricks to speed up GD2 a little?

Thanks in advance!

Jul 17 '05 #2

P: n/a
<no@email.supplied> wrote in message
news:sk********************************@4ax.com...
I'm using PHP with GD2 to create image thumbnails, but it gets
extremely slow when processing large images (1600x1200 or more). I
had to raise max_execution_time to more than 120 secs and I don't
think my client is going to like that :( I guess I could switch to
bilinear resizing but it looks really awful.

Are there any tricks to speed up GD2 a little?

Thanks in advance!


Try using imagecopyresize() instead of imagecopyresampled().
Jul 17 '05 #3

P: n/a
On Tue, 29 Jun 2004 19:57:34 -0400, "Chung Leong"
<ch***********@hotmail.com> wrote:
<no@email.supplied> wrote in message
news:sk********************************@4ax.com.. .
I'm using PHP with GD2 to create image thumbnails, but it gets
extremely slow when processing large images (1600x1200 or more). I
had to raise max_execution_time to more than 120 secs and I don't
think my client is going to like that :( I guess I could switch to
bilinear resizing but it looks really awful.

Are there any tricks to speed up GD2 a little?

Thanks in advance!


Try using imagecopyresize() instead of imagecopyresampled().


Yeap, that's what I meant about bicubic/bilinear resize. I'm using
bilinear now (imagecopyresized()) but of course quality is poor. I
guess that the GD2 libraries are not optimized at all cause Photoshop
or even Irfanview, Acdsee, etc. are a lot faster at bicubic resizing.
Jul 17 '05 #4

P: n/a
On Tue, 29 Jun 2004 07:19:42 GMT, no@email.supplied wrote:
I'm using PHP with GD2 to create image thumbnails, but it gets
extremely slow when processing large images (1600x1200 or more). I
had to raise max_execution_time to more than 120 secs and I don't
think my client is going to like that :( I guess I could switch to
bilinear resizing but it looks really awful.

Are there any tricks to speed up GD2 a little?


Consider using imagemagick instead. It's considerably faster for generating
thumbnails.

See Michael Rostkowski's informative speed comparison post:
http://groups.google.co.uk/groups?se...hoon.sonic.net

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.