解决PHPCMS 自动缩略图不保持等比例

>

if($autocut)
		{

			$scale_w=$srcwidth/$maxwidth;
			$scale_h=$srcheight/$maxheight;
			
			if($srcwidth>$srcheight)
			{
				$createwidth=$maxwidth;
				$createheight=$srcheight/$scale_w;
			}
			else
			{
				$createheight=$maxheight;
				$createwidth=$srcwidth/$scale_h;
			}
			
		}
 

  打开image.class.php

  Line 28:

  替换 if($autocut) 里面的语句为 上面的,(居然不能在IE9中插入到这里,奇怪了)

原文地址:https://www.cnblogs.com/hubj/p/1905418.html