I have a question about saving text/strings as images in PHP. Since I want to protect data on my site, I want to convert text and save it as image files in a folder on a server (before displaying it). Is there a way to do it, or maybe a better solution? Thanks in advance
2条回答 默认 最新
dongyi7901 2017-12-10 17:25关注If you wish to convert Text/String into image, you can try ImageMagick or GD.
Detail about ImageMagick (Imagick extension) is available at http://php.net/manual/en/book.imagick.php)
Detail about GD at http://php.net/manual/en/book.image.php
getimagettftext()function from GD can be useful, see detail at http://php.net/manual/en/function.imagettftext.phpImagick::annotateImage()function from Imagick can be useful, see detail at http://php.net/manual/en/function.imagettftext.php解决 无用评论 打赏 举报