Re: [PHP] Acceptably Converting a 24bit PNG to a JPEG?

2006-12-02 Thread Graham Anderson
using imagecopyresampled did the trick :) This will be great for my css files. If all goes well, the below will be used to dynamically convert PNG images to Jpegs for IE6 and below. For some bizarre reason, you can not use the background-position property with PNGs for <= IE 6. So, in my css

Re: [PHP] Acceptably Converting a 24bit PNG to a JPEG?

2006-12-02 Thread Richard Lynch
I suspect that if you do an "imagecopyresampled" or somesuch into a fresh NEW image, you'd get what you want. Not saying you haven't found a bug ; Just suggesting a work-around. On Fri, December 1, 2006 4:26 pm, Graham Anderson wrote: > Is there some trick to getting PHP GD to properly convert a

[PHP] Acceptably Converting a 24bit PNG to a JPEG?

2006-12-01 Thread Graham Anderson
Is there some trick to getting PHP GD to properly convert a 24bit PNG [with alpha] into a JPEG without garbling the image output? The below will output the jpg image, but it appears that the alpha channel from the original png is garbling the jpeg a bit To no avail, I tried setting imageAlph