Apache License 2.0

项目介绍

drewnoakes/metadata-extractor 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 Apache License 2.0 许可证,目前获得 2.8k 个 Star、502 次 Fork。

仓库全名
drewnoakes/metadata-extractor
开源许可证
Apache License 2.0
Star 数
2.8k
Fork 数
502
未关闭 Issue
130

README 摘要

metadata-extractor is a Java library for reading metadata from media files. Installation The easiest way is to install the library via its Maven package. Alternatively, download it from the releases page. The library targets Java 8. On Android versions below API 24, enable Java 8 interface method desugaring to support the default method on TiffHandler. Usage With that Metadata instance, you can iterate or…

完整内容见 GitHub 原始 README 或本页 。

常见问题

metadata-extractor 用什么语言开发?

主要使用 Java 编写,采用 Apache License 2.0 许可证,目前有 2.8k 个 Star。

metadata-extractor 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 metadata-extractor 的源码?

可以直接克隆仓库:git clone https://github.com/drewnoakes/metadata-extractor.git,默认分支为 main;安装与运行步骤见仓库 README。

metadata-extractor 最近还在维护吗?

仓库最近一次更新为 2 天前,当前有 130 个未关闭 Issue;Star 数为 2.8k,可作为社区活跃度的参考。

简要分析

热度分
3966
价值分
1862
活跃状态
活跃

语言占比

CSS
DIGITAL Command Language
Java

Release

README

metadata-extractor logo

metadata-extractor build status Maven Central Donate

metadata-extractor is a Java library for reading metadata from media files.

Installation

The easiest way is to install the library via its Maven package.

<dependency>
  <groupId>com.drewnoakes</groupId>
  <artifactId>metadata-extractor</artifactId>
  <version>2.19.0</version>
</dependency>

Alternatively, download it from the releases page.

The library targets Java 8. On Android versions below API 24, enable Java 8 interface method desugaring to support the default method on TiffHandler.

Usage

Metadata metadata = ImageMetadataReader.readMetadata(imagePath);

With that Metadata instance, you can iterate or query the various tag values that were read from the image.

Features

See the format documentation for format-specific behavior, limitations, and references.

The library understands several formats of metadata, many of which may be present in a single image:

It will process files of type:

  • JPEG
  • TIFF (including BigTIFF)
  • WebP
  • WAV
  • AVI
  • PSD
  • PNG
  • BMP
  • GIF
  • HEIF (HEIC & AVIF)
  • ICO
  • PCX
  • QuickTime
  • MP4
  • Matroska (MKV, MKA, MKS & MK3D)
  • WebM
  • Camera Raw
    • NEF (Nikon)
    • CR2 (Canon)
    • CR3 (Canon)
    • ORF (Olympus)
    • ARW (Sony)
    • RW2 (Panasonic)
    • RWL (Leica)
    • SRW (Samsung)

Camera-specific “makernote” data is decoded for cameras manufactured by:

  • Agfa
  • Apple
  • Canon
  • Casio
  • Epson
  • Fujifilm
  • Kodak
  • Kyocera
  • Leica
  • Minolta
  • Nikon
  • Olympus
  • Panasonic
  • Pentax
  • Reconyx
  • Sanyo
  • Sigma/Foveon
  • Sony

Read getting started for an introduction to the basics of using this library.

Questions & Feedback

The quickest way to have your questions answered is via Stack Overflow. Check whether your question has already been asked, and if not, ask a new one tagged with both metadata-extractor and java.

Bugs and feature requests should be provided via the project’s issue tracker. Please attach sample images where possible as most issues cannot be investigated without an image.

Contributing

If you want to get your hands dirty, making a pull request is a great way to enhance the library. In general it’s best to create an issue first that captures the problem you want to address. You can discuss your proposed solution in that issue. This gives others a chance to provide feedback before you spend your valuable time working on it.

An easier way to help is to contribute to the sample image file library used for research and testing.

Credits

This library is developed by Drew Noakes.

Thanks are due to the many users who sent in suggestions, bug reports, sample images from their cameras as well as encouragement. Wherever possible, they have been credited in the source code and commit logs.

Other languages

  • .NET metadata-extractor-dotnet is a complete port to C#, maintained alongside this library
  • PHP php-metadata-extractor wraps this Java project, making it available to users of PHP
  • Clojure exif-processor wraps this Java project, returning a subset of data
  • Clojure beeld wraps this Java project, returning all of the data. It also defines an interface for low-level image manipulation. It will resize an image while honoring the orientation tag, preserving portrait mode (something Java’s ImageIO doesn’t do).

More information about this project is available at:

评论

暂无评论