$dst = @imagecreatefromjpeg($dst_path);
$im_z = imagecreatefromjpeg($z_path);//返回图像标识符
$im_f = imagecreatefromjpeg($f_path);//返回图像标识符
$im_wp = imagecreatefrompng($wp_path);//返回图像标识符
list($z_width,$z_height,$z_type,$z_attr)=getimagesize($z_path);
list($f_width,$f_height,$f_type,$f_attr)=getimagesize($f_path);
//imagecopyresized ( resource $dst_image,resource $src_image,int $dst_x,int $dst_y,int $src_x,int $src_y,int $dst_w,int $dst_h,int $src_w,int $src_h )
imagecopyresized($dst,$im_z,10,580,360,$z_width,$z_height);//返回布尔值
imagecopyresized($dst,$im_f,380,$f_width,$f_height);//返回布尔值
imagecopyresized($dst,$im_wp,320,600,165,165);//返回布尔值
imagejpeg($dst,'./'.time().".jpg");
imagedestroy($dst);
echo 'ok';
*/
$path_z = "./z.jpg";
$path_f = "./f.jpg";
echo makeSfzImage($path_z,$path_f);
/**
//导入四张图片
$im_blank = @imagecreatefromjpeg($path_blank);
$im_z = @imagecreatefromjpeg($path_z);//返回图像标识符
$im_f = @imagecreatefromjpeg($path_f);//返回图像标识符
$im_wp = @imagecreatefrompng($path_wp);//返回图像标识符
//获取正反图片的宽高
list($z_width,$z_attr)=getimagesize($path_z);
list($f_width,$f_attr)=getimagesize($path_f);
//imagecopyresized ( resource $dst_image,int $src_h )
//组合
imagecopyresized($im_blank,$z_height);//返回布尔值
imagecopyresized($im_blank,$f_height);//返回布尔值
imagecopyresized($im_blank,165);//返回布尔值
//生成
$path_file = $path_save.time().".jpg";
imagejpeg($im_blank,$path_file);
imagedestroy($im_blank);
return $path_file;
}
?>