Problem Upload/Resize png files
I have a form to upload and resize an image. This appears to be working correctly when I upload a JPG or PNG-8. If I try to upload a PNG-24, it removes the transparency properties of the image and makes the background white. I have ResizeFillColor' => "", but this doesn't help.
What did I miss and what might I be doing wrong?
That section of code below:
-------------------------------------------------------------------------
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => $_SESSION['sponsorImagePath'],
'FileName' => "[FileName]",
'DefaultFileName' => "".((isset($_FILES["sponsorLogo"]))?$_FILES["sponsorLogo"]["name"]:"") ."",
'ResizeType' => "4",
'ResizeWidth' => "175",
'ResizeHeight' => "150",
'ResizeFillColor' => "" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)){
WA_DFP_UploadFiles("WA_UploadResult1", "sponsorLogo", "3", "[ExistingFileName]_tmp", "true", $WA_UploadResult1_Params);
}
?>
--------------------------------------------------------------------------