【发布时间】:2014-12-15 01:53:37
【问题描述】:
我想调整大小 - $artfile,并从 $start_x, $start_y 开始将 store 放到 $dest。
$dest 包含一个框架。 $artfile 需要适合框架,所以我需要调整它的大小。
我的代码是:
imagecopy($dest, $art_file, $start_x, $start_y, 0, 0, $new_width, $new_height); // works fine but to test resize
$dest = my destination resource
$artfile = resource that I want to patch with $destination
$new_width, $new_height = I want $art_file to be resized to this value, without trimming off or cropping.
我的问题是:
对于尺寸超过$new_height 或$new_width 的任何图像,将剪掉更多。我想将整个集合调整为$new_height 或$new_width。
有什么帮助吗?
【问题讨论】: