来自远程来源的 Exiftool

发布于 2025-01-19 06:50:56 字数 283 浏览 1 评论 0原文

我正在尝试使用Exiftool从Internet获取图像元数据,并尝试与Exiftools文档中提供的管道示例一起遵循,我在下面链接了。这无法按预期工作,而是返回未指定文件的错误。我尝试将URL放入引号中,更改命令以使用curl作为exiftool的输入而不是管道,似乎没有任何作用。任何帮助将不胜感激。

I'm trying to get image metadata from the internet using exiftool and tried to follow along with the piping example provided in exiftools docs, which I've linked below. This does not work as expected and instead returns an error of no file specified. I've tried putting the URL into quotes, changing around the command to use curl as an input into exiftool instead of piping, nothing seems to work. Any help would be appreciated.

https://exiftool.org/exiftool_pod.html#PIPING-EXAMPLES

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浪荡不羁 2025-01-26 06:50:56

对我来说很好。确保添加-以指示从stdin读取。这是一个示例:

> curl -s "https://www.gravatar.com/avatar/1f20f72dba83a169c623fbe652657a32?s=48&d=identicon&r=PG" | exiftool -
ExifTool Version Number         : 11.88
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 48
Image Height                    : 48
Bit Depth                       : 8
Color Type                      : RGB with Alpha
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Pixels Per Unit X               : 3780
Pixels Per Unit Y               : 3780
Pixel Units                     : meters
Image Size                      : 48x48
Megapixels                      : 0.002

Works just fine for me. Make sure to add the - to indicate reading from stdin. Here is an example:

> curl -s "https://www.gravatar.com/avatar/1f20f72dba83a169c623fbe652657a32?s=48&d=identicon&r=PG" | exiftool -
ExifTool Version Number         : 11.88
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 48
Image Height                    : 48
Bit Depth                       : 8
Color Type                      : RGB with Alpha
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Pixels Per Unit X               : 3780
Pixels Per Unit Y               : 3780
Pixel Units                     : meters
Image Size                      : 48x48
Megapixels                      : 0.002
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文