开发者

Convert text to Image & Rotate It

i开发者_Python百科s there a way i can convert text into Image & then Rotate it & then display it all using script\code to display in the webpage


Yes, you can, take a look at GD's imagettfext or Imagick's annotateImage.


You can write a script, which you embed in your html-page like an usual image:

<img src="rotatedtext.php?text=blablubb" />

Don't forget to set the content-type of the http-header in that script to image/png (I recommend png for that purpose) before outputing the png-data:

//create the image here and then:
header("Content-Type: image/png");
imagepng($image);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜