if($toWH<=$srcWH){ $ftoW=$toW; $ftoH=$ftoW*($srcH/$srcW); } else{ $ftoH=$toH; $ftoW=$ftoH*($srcW/$srcH); } |
$ftoH=$toH; $ftoW=$toW; if ($toWH<=$srcWH) { $src_Y = 0; $src_X = ($srcW-$srcH*$toWH)/2; $srcW = $srcH*$toWH; } else { $src_X = 0; $src_Y = ($srcH-$srcW/$toWH)/2; $srcH = $srcW/$toWH; } ($ni,$im,0,0,0,0,$ftoW,$ftoH,$srcW,$srcH) |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: dede源码织梦模板下载自动生成的缩略图裁剪长度宽度