使用PHP或HTML5进行图像弯曲 [英] Image curving with PHP or HTML5
问题描述
http: //i53.tinypic.com/2gule04.jpg
我尝试了弯曲以矩形开头(由用户上传)的图像,最好使用Canvas或JS
基于那里的答案,我尝试了像素明智的转换,但它不起作用。要了解基于网格的方法,您将需要一套我不具备的3d-2d开发人员技能。
我是一名PHP开发人员,我正在寻找在PHP或HTML5中的答案。我尝试了很多从HTML5 canvas到分割图片到更小的部分然后加入它们的东西,然而这些东西看起来不起作用。
右边的帮助方向将不胜感激。如果你可以使用 > ImageMagick ,圆形和径向畸变方法示例应该会很漂亮关闭。
我不知道PHP ImageMagick扩展(与从命令行调用ImageMagick相反)是否也支持这种扩展,但它可能是。
I am looking to achieve:
http://i53.tinypic.com/2gule04.jpg
I have tried the answers mentioned at Curving an image that starts as a rectangle (uploaded by user), preferably using Canvas or JS
Based on the answers there, I have tried pixel wise transformation which didn't work. To understand a mesh based approach, you will need a skill set of 3d-2d developer which I don't possess.
I am a PHP developer and I am looking for an answer in either PHP or HTML5. I have tried number of things ranging from HTML5 canvas to splitting the image into smaller parts and then joining them however those don't seem to work.
A help in the right direction will be greatly appreciated.
If you can use ImageMagick, the Circular and Radial Distortion Methods examples should come pretty close.
I don't know whether the PHP ImageMagick extension (as opposed to calling ImageMagick from the command line) supports this as well, but it might.
这篇关于使用PHP或HTML5进行图像弯曲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!