【发布时间】:2017-01-19 02:51:05
【问题描述】:
- 我正在使用 php GD 库在 Web 服务应用程序中读取和写入图像(png、jpeg、bmp)。 GD 库在这里:http://php.net/manual/en/ref.image.php
- GD 库的问题是它不支持 bmp 类型。
- 要读取 bmp 图像,我在 https://github.com/dompdf/dompdf/blob/master/src/Helpers.php#L555 使用函数 imagecreatefrombmp()
- 要写bmp图像,我还没有任何解决方案。那么对于编写 bmp 图像有什么建议吗?我希望这个函数会像 imagepng()、imagejpeg() 或者像上面的 imagecreatefrombmp() 那样自己的源代码。
- 我的平台:php 5.5.9,ubuntu 4.20。
【问题讨论】: