2024年5月5日发(作者:)
不要抱怨网速慢,只怪你自己不会调快网速(一分钟解决网速问题)
电脑系统都会默认限制20%的网速,我们可以很轻松地解除这个限制,使你的上网速
度达到100%,真正地体验冲浪的感觉.方法如下:开始菜单-运行-输入"”
-确定-计算机配置-管理模板-网络-qos数据包计划程序-限制保留宽带-属性
-已启用-将带宽限制改为0%-选应用-确定 就OK了
如果有不会的 下面有操作图:
首先单击开始在选择运行!
输入:单击确定
会出现以下窗口单击计算机配置
在单击管理模块
break; } $r = array('filesize' => filesize($tmpfile), 'width' => $des_width, 'height' => $des_height);; copy($tmpfile, $destfile); is_file($tmpfile) && unlink($tmpfile); imagedestroy($img_dst); return $r; } /** * 图片裁切 * * @param string $sourcefile 原图片路径(绝对路径/abc.jpg) * @param string $destfile 裁切后生成新名称(绝对路径/rename.jpg) * @param int $clipx 被裁切图片的X坐标 * @param int $clipy 被裁切图片的Y坐标 * @param int $clipwidth 被裁区域的宽度 * @param int $clipheight 被裁区域的高度 * image_clip('xxx/x.jpg', 'xxx/newx.jpg', 10, 40, 150, 150) */ function well_image_clip($sourcefile, $destfile, $clipx, $clipy, $clipwidth, $clipheight, $getimgsize = '') { global $conf; empty($getimgsize) AND $getimgsize = getimagesize($sourcefile); if (empty($getimgsize)) { return 0; } else { $imgwidth = $getimgsize[0]; $imgheight = $getimgsize[1]; if (0 == $imgwidth || 0 == $imgheight) { return 0; } } if (!function_exists('imagecreatefromjpeg')) { copy($sourcefile, $destfile); return filesize($destfile); } switch ($getimgsize[2]) { case 1 : $imgcolor = imagecreatefromgif($sourcefile); break; case 2 : $imgcolor = imagecreatefromjpeg($sourcefile); break; case 3 : $imgcolor = imagecreatefrompng($sourcefile); break; case 15: // WBMP $imgcolor = imagecreatefromwbmp($sourcefile); break; case 18: // WEBP $imgcolor = imagecreatefromwebp($sourcefile); break; } if (!$imgcolor) return 0; $img_dst = imagecreatetruecolor($clipwidth, $clipheight); imagefill($img_dst, 0, 0, 0xFFFFFF); imagecopyresampled($img_dst, $imgcolor, 0, 0, $clipx, $clipy, $imgwidth, $imgheight, $imgwidth, $imgheight); $tmppath = isset($conf['tmp_path']) ? $conf['tmp_path'] : ini_get('upload_tmp_dir') . '/'; '/' == $tmppath AND $tmppath = './tmp/'; $tmpfile = $tmppath . md5($destfile) . '.tmp'; imagejpeg($img_dst, $tmpfile, 75); $n = filesize($tmpfile); copy($tmpfile, $destfile); is_file($tmpfile) && unlink($tmpfile); return $n; } function well_image_ext($filename) { return strtolower(substr(strrchr($filename, '.'), 1)); } ?>
2024年5月5日发(作者:)
不要抱怨网速慢,只怪你自己不会调快网速(一分钟解决网速问题)
电脑系统都会默认限制20%的网速,我们可以很轻松地解除这个限制,使你的上网速
度达到100%,真正地体验冲浪的感觉.方法如下:开始菜单-运行-输入"”
-确定-计算机配置-管理模板-网络-qos数据包计划程序-限制保留宽带-属性
-已启用-将带宽限制改为0%-选应用-确定 就OK了
如果有不会的 下面有操作图:
首先单击开始在选择运行!
输入:单击确定
会出现以下窗口单击计算机配置
在单击管理模块
发布评论