(ten kawałek który wykomentował jest chyba nie potrzebny, bo bez tego działa tak jak działało; znalazłem w necie i myślałem, że pomoże przy GIFie ale nie)
function watermark($filef, $new_width, $new_height, $quality) { if ($info === false) { return false; } $img = imagecreatefromgif($filef); $th = imagecreatetruecolor($new_width, $new_height+25); $watermark = imagecreatefrompng('watermark.png'); /* imagealphablending($th, false); imagesavealpha($th,true); $transparent = imagecolorallocatealpha($newImg, 255, 255, 255, 127); imagefilledrectangle($th, 0, 0, $new_width, $new_height, $transparent); */ imagecopyresampled($th, $img, 0, 0, 0, 0, $new_width, $new_height, $info[0], $info[1]); imagecopy($th, $watermark, $new_width-142, $new_height, 0, 0, 142, 25); imagegif($th, $filef, $quality); imagedestroy($th); imagedestroy($img); return true; }