使用PHP从多个图像创建附加的照片拼贴图像 [英] Creating a photo collage image as attached using PHP from several images

查看:118
本文介绍了使用PHP从多个图像创建附加的照片拼贴图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用PHP脚本按照以下方法从大量图像创建拼贴?

How can i create a collage from a large number of images as per below using PHP scripts?

我也在寻找创建不同尺寸的A0,A1,A2尺寸图像取决于拼贴中使用的图片数量。

I am also looking at creating different sizes A0, A1, A2 sized images depending on the number of pictures used in the collage.

谢谢

推荐答案

我建议使用Imagemagick。 Mikko的博客上有一些很棒的教程:

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

编辑

这里有一些更有用的链接:

Here's a few more useful links:

图像处理(ImageMagick)

< a href =http://php.net/manual/en/book.imagick.php =nofollow noreferrer> http://php.net/manual/en/book.imagick.php

Image Processing (ImageMagick)
http://php.net/manual/en/book.imagick.php

Imagick :: readImageFile

http://www.php.net/manual/en/function.imag ick-readimagefile.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::rotateImage
http://www.php.net/manual/en/function.imagick-rotateimage.php

Imagick :: scaleImage

http://www.php.net/manual/en/function.imagick-scaleimage.php

Imagick::scaleImage
http://www.php.net/manual/en/function.imagick-scaleimage.php

PHPro教程

http://www.phpro.org/tutorials/Imagick.html

最后......

这是一个很好的起点:

This one is a good starting point:

分层图像的程序化定位

http://www.imagemagick.org/Usage/layers/#example

Programmed Positioning of Layered Images
http://www.imagemagick.org/Usage/layers/#example

这篇关于使用PHP从多个图像创建附加的照片拼贴图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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