Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 PHP 中使用 GD 对许多 png 图像进行分层,然后输出一个较小的版本。
哪个更有效,对于imagecopy所有图层,然后imagecopyresampled将合成图像合成到所需尺寸的空白图像上,或者首先创建所需尺寸的空白图像,然后将imagecopyresampled每个图层放到画布上?
imagecopy
imagecopyresampled