Can GD make text appear warped (made to look like it wraps around a curve slightly)?

*爱你&永不变心* 提交于 2019-12-13 06:41:03

问题


I am placing some text over an image using PHP's GD library.

The background image is a ball. Ideally, the text should warp slightly to look like it is on a curved surface. It should be largest in the middle, and scale slightly smaller on each end (text is not known before hand either, but there is a maximum length of 15 chars).

Is this possible, or do I need to use a better library than GD?

Thanks


回答1:


For image effects, I suggest you look at Imagick. Although it's possible in GD, you need to write your own math algorithms for such.



来源:https://stackoverflow.com/questions/3421117/can-gd-make-text-appear-warped-made-to-look-like-it-wraps-around-a-curve-slight

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!