के साथ पीएनजी पारदर्शिता अरे मुझे एक पीएनजी पर पारदर्शिता बनाए रखने की कोशिश करने में कुछ परेशानी हो रही है जब मैं इससे थंबनेल बनाता हूं, किसी के साथ इसका कोई अनुभव होता है? किसी भी मदद बहुत अच्छा होगा, यहाँ मैं वर्तमान में क्या कर रहा हूँ है:PHP
$fileName= "../js/ajaxupload/tees/".$fileName;
list($width, $height) = getimagesize($fileName);
$newwidth = 257;
$newheight = 197;
$thumb = imagecreatetruecolor($newwidth, $newheight);
imagealphablending($thumb, true);
$source = imagecreatefrompng($fileName);
imagealphablending($source, true);
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
imagesavealpha($thumb, true);
imagepng($thumb,$newFilename);
जो इसे क्रैक किया! बहुत आभारी! – BastardPrince
यह मेरे लिए काम नहीं करता है :( – 2by
+1 धन्यवाद, मेरे लिए काम किया –