Appending a png pHYs chunk in php
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to tack on some information about the physical size for printing my PNGs just before they are generated. Reading the libpng doc and the pHYs chunk specifications has been helpful but I just can't seem to crack it. I have tried adding this chunk in the most manual and simplest way possible, however, the .png file ends up corrupted. Am I missing an encoding trick? For the CRC computation I have used the 32-bit result of this site , having plugged in the ASCII values for the chunk that the code below gives me. $encoded = $_POST[