英文:
Parsing PNG image with baked data
问题
我知道在Golang中有一个图像包,它实现了编码和解码功能,但是我如何从图像中获取其他数据呢?例如,我想从PNG图像中获取iTXt块,有没有办法可以做到这一点?
英文:
I know there is an image package that exist in Golang that implements encode and decode functionality, but how can I get other data from an image?. For example I am trying to get iTXt chunks from PNG images, is there any way I can do this?
答案1
得分: 1
@Khalil,
看起来Go的PNG阅读器不支持附加块。
请查看https://golang.org/src/image/png/reader.go的第87行的内部实现,并与https://www.w3.org/TR/PNG/#5ChunkOrdering进行比较。
英文:
@Khalil,
Looks like Go's PNG reader does not support ancillary chunks.
Check internals of https://golang.org/src/image/png/reader.go for line 87 and compare with https://www.w3.org/TR/PNG/#5ChunkOrdering.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论