且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP弯曲/扭曲图像的功能

更新时间:2023-11-18 09:53:34

如果您可以在服务器上使用ImageMagick,您可能需要这个试一试:

If you can use ImageMagick on your server you might want to give this a try:

  convert koala.gif -background Blue  -wave 10x64  wave.jpg

更新

如果你没有使用某些您显然必须编写自己的库。

If you aren't using some library you will obviously have to write your own implementation.

以下是一些建议,您可以在其中找到有用的信息:

Here are some suggestions where you can find useful informations on that:

然后有一个2样条mash变形算法的解释可能会做你想要的此处

Then there's an explanation of the 2-spline mash warping algorithm that might do what you want here.

这里是对可能满足您需求的算法的一个很好的概述( Microsoft doc文件)。

Here's a good overview over algorithms that might suit your needs(Microsoft doc file).

你应该知道这不是很容易的事情反。但如果你对这个主题感兴趣并且真的必须活着没有ImageMagick,那么这是你唯一的机会(据我所知)。

You should be aware though that this isn't something that's easily implemented. But if you are interested in the topic and really really have to live withouth ImageMagick than that's your only chance(as far as I know).

然后还有GD的糟糕表现..

And then there's also GD's bad performance..

祝你好运! : - )

Good luck! :-)