GD 1和2 生成的图片质量问题

到现在还有人问:我生成的图片质量怎么这么差呀.
其实现在服务器上的GD Lib都是 2+的,在GD 2里,用imagecreate()函数创建的图像质量很差(在GD 1就不会).解决方法好简单的:imagecreatetruecolor()(当然,需要在php版本是4.0.6之上的,具体可以看手册)就可以创建真彩色的高质量图片.

One Response to GD 1和2 生成的图片质量问题

  1. lee says:

    不会玩,老是要查手册.郁闷

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>