Php Speed regarding images

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Thu Jul 11, 2002 10:43 pm

splendid bob wrote:Hi all,
First of all, i am glad to see a decent conventional looking forum for php online. (i hate those pesky, unusable mailing lists)

anyway, just a general comment regarding php and image creation.

I am working on a complex flash/php project, which uses a flash interface for image manipulation and creation. Flash is limited in what it can do at runtime, so i am using php for backend manipulation then reimporting modified images into flash. The crucial element here is speed, so heres my thoughts based on my experiences with various php methods for image manipulation:

1)php with GD. Did some experimenting with this, found it to be veeery slow. Perhaps somebody could explain why this was the case, i.e. is php the problem, or is the gd library slow?

2)php with imagemagick. using the imagemagick executables and calling these from php. Although imagemagick does have a large amount of image manipulation features, i)it is buggy in certain areas (most notably alpha channels) ii)with 32 bit support enabled it is slow. (presumably due to the precompiled executables having everything possible thrown in..)

3)php with c++. Because the above two options were simply too slow i have had to create my own exes to be called from php via c++. Used the free paintlib libraries, and this exe is far faster than 1) or 2).

Still havent found a fast solution to the problem of compositing text onto an image though, anybody have any experience with gd's effectiveness for this?

I would be v interested in hearing from anybody who has knowledge of any alternative methods/free exe's/libraries for image creation with php, and how effective they are.


Hi Bob!
I'm open your site and foget about it... 3 hour drowing.... Yea image - cool!
About GD, i don't think so what GD work slowly, some peaple drowing site using GD and all work ok! Maby you somethere have mistake?

I'm to glad see new face at this forum :wink:
see ya!
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Fri Jul 12, 2002 7:47 am

Hi Robert,

I think that you can use imagemagick...

But you said that you work with flash ? so why can not use ming or swflib or some flashgenerator based on the php ?


Post Reply