如何在PHP中将图像包含在另一个图像中? [英] How to include an image inside another image in PHP?

查看:101
本文介绍了如何在PHP中将图像包含在另一个图像中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在PHP中将图像包含在另一个图像中?我想像在twitterbackgrounds.com个性化背景中那样做.有一张主图像,之后我们可以上传四张个人图像,该图像将作为主图像的水印显示.

How to include an image inside another image in PHP? I want to do it like in twitterbackgrounds.com personalized backgroud. there is one main image and we can upload four personal images after that it will show as watermark of the main image.

推荐答案

嗯,有几种方法可以做到这一点.我想到的是使用一个php页面,您可以在其中上传为此所需的所有文件.提交后,您可以使用 imagemagick 来创建带有水印的新图像,并将其显示在另一个网页上或将其存储到数据库.

Well, there are several possibilies to do that. The one that pops into my mind is to use a php page where you can upload all files needed for this. After submission you can use imagemagick to create the new image with watermarks and display it on another webpage or store it to a database.

这是一个很好的教程,介绍了如何使用imagemagick在另一个图像中创建水印.

您可以将imagemagick用作php的命令行命令,也可以将其用作自己服务器上的服务器应用程序

you may use imagemagick as commandline command from php or use it as a server application on an own server

这篇关于如何在PHP中将图像包含在另一个图像中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆