Php Speed regarding images

images php coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
splendid bob
New php-forum User
New php-forum User
Posts: 3
Joined: Thu Jul 11, 2002 8:19 am
Location: UK
Contact:

Php Speed regarding images

Postby splendid bob » Thu Jul 11, 2002 8:57 am

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.

bob

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Php Speed regarding images

Postby WiZARD » 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.

bob


Hi Bob!
I'm open your site http://www.thebrightlight.co.uk 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?

P.S.
I'm to glad see new face at this forum :wink:
see ya!

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » 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 ?

regards...

User avatar
splendid bob
New php-forum User
New php-forum User
Posts: 3
Joined: Thu Jul 11, 2002 8:19 am
Location: UK
Contact:

Postby splendid bob » Fri Jul 12, 2002 8:01 am

Hi,
yes, we are using ming as well.. the problem we had is that we are using flash as a front end, and are trying to give our little project as many image editing capabilities as possible. Of most importance is the extraction and modification of png alpha channel info. Flash has no way of doing this, so we have to pass variables out from flash, do the image manipulations server side, then reimport the image.

The project is basically an online image editor (at least a significant part of it is), so the only role of flash really is to provide an interface to the proper backend image manipulation stuff. We are aiming for fairly comprehensive image aditing feature such as: layers, full masking and alpha channel editing, filters, colour tweaking, drawing etc.

speed is such an important factor because of the unfortunate need to perform image manipulations outside flash then import the image back in (for which we use ming to 1)encase the image in swf, and 2)vastly reduce the png filesize by using mings unusual jpg masking feature).

bob


Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 1 guest

cron