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.
是否可以在 GD 生成的图像中包含外部图像(gif、jpg 或 png)?
我想要做的是获取最新的 wordpress 博客文章(如 5)并从中生成图像。我想包括标题和随博客文章上传的图片。
是的。使用其中一个imagecreatefromXXXXX功能将外部图像导入 GD 图像对象,然后使用该imagecopy功能或类似功能将其与生成的图像组合。
imagecreatefromXXXXX
imagecopy
为方便起见,这里有 GD 函数参考。