使用 PHP 从多个图像创建附加的照片拼贴图像
如何使用 PHP 脚本从大量图像创建拼贴画(如下所示)?
我还在考虑根据拼贴中使用的图片数量创建不同尺寸的 A0、A1、A2 尺寸的图像。
谢谢
How can i create a collage from a large number of images as per below using PHP scripts?
I am also looking at creating different sizes A0, A1, A2 sized images depending on the number of pictures used in the collage.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议使用 Imagemagick。 Mikko 的博客上有一些很棒的教程:
http://valokuva.org/?cat=1
看一下宝丽来示例,如下:
http://valokuva.org/?p=37
Reflection 教程演示了如何创建合成图像:
http://valokuva.org/?p=82
< strong>编辑
这里有一些更有用的链接:
图像处理(ImageMagick)
http://php.net/manual/en/book.imagick.php
Imagick::readImageFile
http://www.php.net/manual/en/function.imagick -readimagefile.php
Imagick::rotateImage
http://www.php.net/manual/en/function.imagick -rotateimage.php
Imagick::scaleImage
http://www.php.net/manual/en/function.imagick -scaleimage.php
PHPro教程
http://www.phpro.org/tutorials/Imagick.html
并且最后...
这是一个很好的起点:
分层图像的编程定位
http://www.imagemagick.org/Usage/layers/#example
I suggest using Imagemagick. There are some excellent tutorials on Mikko's blog:
http://valokuva.org/?cat=1
Take a look at the Polaroid example, here:
http://valokuva.org/?p=37
The Reflection tutorial demonstrates how to create composite images:
http://valokuva.org/?p=82
EDIT
Here's a few more useful links:
Image Processing (ImageMagick)
http://php.net/manual/en/book.imagick.php
Imagick::readImageFile
http://www.php.net/manual/en/function.imagick-readimagefile.php
Imagick::rotateImage
http://www.php.net/manual/en/function.imagick-rotateimage.php
Imagick::scaleImage
http://www.php.net/manual/en/function.imagick-scaleimage.php
PHPro Tutorial
http://www.phpro.org/tutorials/Imagick.html
And finally...
This one is a good starting point:
Programmed Positioning of Layered Images
http://www.imagemagick.org/Usage/layers/#example
这正是您正在寻找的内容。
This is exactly what you are looking for.