Re: [PHP] GD - import a PNG image and make transparant

2010-05-13 Thread Alex Davies
'm currently looking through Karl's example to see if I can work it out, but if anyone can point out a super-simple way of achieving the pseudo-code above, i'd be very grateful! Cheers, Alex On Thu, May 13, 2010 at 1:34 AM, Ashley Sheridan wrote: > On Thu, 2010-05-13 at 00:12 +010

[PHP] GD - import a PNG image and make transparant

2010-05-12 Thread Alex Davies
Hi, I am trying to import a PNG image from disk, place it on top of a transparant image created in GD and output it to the browser. In the case of a low opacity setting, I would expect to see the background colour from the HTML page. If I set the opacity to 0, everything works - I end up with a t

Re: [PHP] Transparent PNGs: Merging

2009-12-12 Thread Alex Davies
et, 5, 0, 0, imagesx($img), imagesy($img)); And it works :) It seems imagecopymerge does not work well with PNGs and Alpha Channels. Many thanks for your help, Alex On Sat, Dec 12, 2009 at 11:20 AM, Ashley Sheridan wrote: > On Sat, 2009-12-12 at 05:02 +0000, Alex Davies wrote: > >

[PHP] Transparent PNGs: Merging

2009-12-11 Thread Alex Davies
Hi All, I apologise if this is a newbie post; i'm new to transparent graphics (PNGs in my case). I have a transparent PNG on disk, which I want PHP to load into memory and add some text to ("watermarking", I guess). This seems to be what is achieved @ http://php.ca/manual/en/image.examples.merged

Re: [PHP] 100% CPU Usage somewhere in script - how to find it?

2009-01-18 Thread Alex Davies
it the situation is completely resolved. I still wonder if there is a neater way to do this! Cheers, Alex On Sun, Jan 18, 2009 at 2:43 PM, Eric Butera wrote: > On Sun, Jan 18, 2009 at 3:16 AM, Alex Davies wrote: > > Hi, > > > > I use a (externally developed) library within

[PHP] 100% CPU Usage somewhere in script - how to find it?

2009-01-18 Thread Alex Davies
Hi, I use a (externally developed) library within my application which used to work fine. However, after a recent update (which unfortunately we can't roll back due to dependencies) I have crazy CPU loads - there are ~20 cores in total on the webservers and they have gone from an average utilizati