473,388 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Making GD2 faster

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
4 2711
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
<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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with...
13
by: Chris Mantoulidis | last post by:
There must be some tips to make a program quicker. I guess more than 50% of ppl here will say "avoid the if-s". Yeah I know this makes a program quicker but some times an "if" is inevitable,...
19
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
4
by: Corey | last post by:
I have a Access database that I want about 10 users across the country to access. Currently the application sits on a local server and the users that are connecting to the server from far away,...
7
by: Manu | last post by:
Hi! How can i make the .net applications run faster on user computers. I have used .net a lot and proagrammed int it. But the applications developed using ..net framework are very slow when...
84
by: Peter Olcott | last post by:
Is there anyway of doing this besides making my own string from scratch? union AnyType { std::string String; double Number; };
23
by: Python Maniac | last post by:
I am new to Python however I would like some feedback from those who know more about Python than I do at this time. def scrambleLine(line): s = '' for c in line: s += chr(ord(c) | 0x80)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.