简体   繁体   English

Golang图像IPTC元数据

[英]Golang image iptc metadata

I need to get the meta data, especially the iptc meta data from the uploaded files on the server. 我需要从服务器上上传的文件中获取元数据,尤其是iptc元数据。

I have found two packages I can import, but both of them require the "libiptcdata" libary. 我找到了两个可以导入的软件包,但是它们都需要“ libiptcdata”库。 It should not be a problem, but after I installed the libary with brew, as it is written on both of the packages page, and typed go get " https://github.com/Melraidin/iptc " (for example, one of the two packages I wanted to use), I got the following error: 这应该没有问题,但是在我用brew安装了libary之后,因为它写在两个软件包页面上,然后键入go get“ https://github.com/Melraidin/iptc ”(例如,我想使用的两个软件包),出现以下错误:

../../github.com/Melraidin/iptc/main.go:10:10: fatal error: libiptcdata/iptc-data.h: No such file or directory #include <libiptcdata/iptc-data.h> ^~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.

The error is real, the file is really is not there, but how then it could work at anyone else? 该错误是真实的,该文件确实不存在,但是该文件如何在其他任何人上工作? I found these 2 packages suggestion of using on a few page. 我在几页上找到了使用这两个软件包的建议。

Thank you for your help 谢谢您的帮助

First, I have removed the brew installed "libiptcdata" libary, than installed the following libaries: 首先,我删除了brew安装的“ libiptcdata”库,而不是安装以下库:

"libiptcdata0" "libiptcdata0-dev" "python-iptcdata" “ libiptcdata0”“ libiptcdata0-dev”“ python-iptcdata”

with these three, the "go get" is managed to run, and could continue working on the original problem... 有了这三个,“ go get”就可以运行,并且可以继续解决原始问题...

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

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