Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread Tijnema
On 6/9/07, Sukhwinder Singh [EMAIL PROTECTED] wrote: I have tried many ways to resize a transparent gif but it works on my local server which has php 5.1.6 but none works using php 4.4.x Also the below works when using imagecopyresized and not imagecopyresampled. I have no clue why that is the

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread tedd
At 1:12 AM +0500 6/10/07, Sukhwinder Singh wrote: -snip- Could anyone please provide me a solution which works using php 4.4.x Sukhwinder Singh Instead of: imagecolortransparent($img_resized, $transparent); try: imagecolortransparent($img,imagecolorat($img,0,0)); Look-up imagecolorat().

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread Sukhwinder Singh
resizing using php 4.4.x At 1:12 AM +0500 6/10/07, Sukhwinder Singh wrote: -snip- Could anyone please provide me a solution which works using php 4.4.x Sukhwinder Singh Instead of: imagecolortransparent($img_resized, $transparent); try: imagecolortransparent($img,imagecolorat($img,0,0

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread tedd
At 12:42 AM +0500 6/11/07, Sukhwinder Singh wrote: try: imagecolortransparent($img,imagecolorat($img,0,0)); Look-up imagecolorat(). I had tried it earlier. As I have written in my other emails. I have tried almost all solutions. I am really wondering that no one has every faced any such

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread Richard Lynch
On Sun, June 10, 2007 12:08 pm, tedd wrote: At 1:12 AM +0500 6/10/07, Sukhwinder Singh wrote: -snip- Could anyone please provide me a solution which works using php 4.4.x Sukhwinder Singh Instead of: imagecolortransparent($img_resized, $transparent); try:

[PHP] Transparent image resizing using php 4.4.x

2007-06-09 Thread Sukhwinder Singh
I have tried many ways to resize a transparent gif but it works on my local server which has php 5.1.6 but none works using php 4.4.x Also the below works when using imagecopyresized and not imagecopyresampled. I have no clue why that is the case as imagecopyresampled is supposed to produce

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-09 Thread Crayon Shin Chan
On Sunday 10 June 2007 04:12, Sukhwinder Singh wrote: $img_resized = ImageCreateTrueColor ($img_new_width, $img_new_height); But the above doesn't work using php 4.4.x and creates images with lots of white lines/dots in it. Some pixel is transparent and some it isn't. I have no knowedge