简体   繁体   English

适用于PHP的PNG编码器/解码器

[英]PNG encoder/decoder for PHP

Is there any implementation of a PNG encoder/decoder written in PHP? 有没有用PHP编写的PNG编码器/解码器的实现? Something similar to this one: http://packages.python.org/pypng/png.html 与此类似: http : //packages.python.org/pypng/png.html

I know there is GD and other ones, but as far as I know, you cannot have greater control over png chunks since they are png specific. 我知道有GD和其他,但据我所知,您无法更好地控制png块,因为它们是png特定的。

Thanks, 谢谢,

Nano. 纳米。

Basically I will like to add certain types of chunks, like sPLT (which they are not that hard to be added manually). 基本上,我想添加某些类型的块,例如sPLT(手动添加它们并不难)。 However, I cannot find a way to create the image data itself. 但是,我找不到创建图像数据本身的方法。 I will like to create true-color images with 16 bits per channel, but the IDAT chunk is not as straightforward as other chunks. 我想创建每个通道16位的真彩色图像,但是IDAT块并不像其他块那样简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM