摘要: call an undefined function exif_imagetype()打开扩展php.ini将 ; 去掉;extension=php_exif.dll并将extension=php_mbstring.dll ,放到extension=php_exif.dll前边Call to undefined function imagecreatefromjpeg解决步骤如下:1、找到apache bin目录下的 php.ini 配置文件 找到 ;extension=php_gd2.dll 配置,把这个模块打开,就可以了extension=php_gd2.dll2、在安装的php文件夹目录 阅读全文
posted @ 2013-07-16 17:40 大脸 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1 && $ratio_h > 1)) {if($ratio_w 1) || ($ratio_w >1 && $ratio_h $ratio_w? $ratio_h : $ratio_w; //取比例大的那个值// 定义一个中间的大图像,该图像的高或宽和目标图像相等,然后对原图放大$inter_w=(int)($w * $ratio);$inter_h=(int) ($h * $ratio);$inter_img=imagecreatetruecolor($inter_w , $inter_h);//将原图缩放比例后裁剪imagecopyresamp 阅读全文
posted @ 2013-07-16 17:37 大脸 阅读(8485) 评论(0) 推荐(0) 编辑
摘要: /// /// 生成缩略图 /// /// 源图路径(物理路径) /// 缩略图路径(物理路径) /// 缩略图宽度 /// 缩略图高度 /// 生成缩略图的方式 public static void MakeThumbnail(string originalImagePath, string thumbnailPath, int width, int height, string mode) { System.Drawing.Im... 阅读全文
posted @ 2013-07-16 15:43 大脸 阅读(1097) 评论(0) 推荐(0) 编辑