[PHP] working with jpegs
i've only been using the php image functions for about a week now. i understand that jpegs have their own custom color pallette. so whenever i want to add something to an existing jpeg, the only colors i have to work with are the ones that are already defined. hence the purpose of imagecolorclosest(). at least this is how i understand things. so, for example, if i'm working with a jpeg that mostly uses dark colors, attempting to add white text to it doesn't always come out as bright as i'd like. is there any way around this without switching to a different image format or making system calls to something more advance like imagemagick? is it not possible to expand the color pallette after doing an imagecreatefromjpeg()? -jr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] gd 2.0
has anyone gotten php to compile with gd 2.0? i know gd 2.0 is still in beta, but i was able to compile and install it without any problems. when compiling php, however, i end up with some error in regards to the libmysql extension. if i switch back to gd 1.8, all works fine. -jr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] network connections
i've got a command-line php script that i've been using to deliver large amounts of e-mail. originally it relied on mail() to deliver the messages but i could easily overload sendmail and bring the box (redhat 7.1) to a crawl. so i am now using the various network functions to speak smtp directly from the script. i seem to be having a problem with an excessive number of tcp connections that eventually brings down the machine. i have attempted a semi-multi-threaded approach by spawning off additional copies of the script to deliver more mail simultaneously. so i might have 100 copies of the script running at the same time. and this was after dumping a million messages into my mysql-based mail queue. things may run okay for a few hours...maybe even a day...but then doing a netstat shows over 10k tcp connections. and the only way i've found to fix the problem is to reboot the machine. thinking that i was attempting too many connections at the same time, i throttled down the number of threads to 25. this slowed down my mail delivery of course. and it allowed the machine to stay up longer. but i eventually ran into the same problem after maybe two or three weeks. just before it died, i was showing over 30k tcp connections. are they any known issues in the php networking code that would cause this to happen? as far as i know, i should never have more than 25 tcp connections open. but i'm not sure if they are not being closed properly or what. -- -jr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]