Hi, I have a 32-bit true-color image where all pixels have some degree of transparency. There are just 11 different colors (i.e. 11 different combinations of RGB & alpha). When I try to convert to a palette .PNG using the code below, the transparency is lost and all pixels become opaque. Is there something wrong with the ImageTrueColorToPalette function or am I doing something stupid. Thanks.
.....
imagealphablending($bigImageHandle, false);
imagesavealpha($bigImageHandle, true);
imagetruecolortopalette($bigImageHandle, false, 16);
imagepng( $bigImageHandle, "filename.png", 9);