You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i want to read metadata i have to look into the sourcecode of public void showMetadata() to find out how to get data from each Metadata implementation.
As a pixymeta user
i want a simple uniform api to get the desired meta-content
so that i donot have to learn much of the internals of the implementation.
I have started implementing this in my local IMetaApi branch of the https://github.com/k3b/pixymeta-android/ repository.
The api can be used like this.
Map<MetadataType, Metadata> metadataMap = Metadata.readMetadata(dir + "test.jpg");
StringBuffer result = new StringBuffer();
for (IMetadataDirectory directory : metadataMap.values()) {
List<IMetadataTag> tags = directory.getTags();
if ((tags != null) && (tags.size() > 0)) {
for (IMetadataTag tag : tags) {
result.append(tag.getName()).append(" : ").append(tag.getValue()).append("\n");
}
}
final List<IMetadataDirectory> subdirectories = directory.getSubdirectories();
if (subdirectories != null) {
for (IMetadataDirectory sub : subdirectories) {
...
}
}
}
The text was updated successfully, but these errors were encountered:
@k3b When I wrote pixymeta-android, I was having both metadata read and write functions in mind that's how the current pixymeta-android behaves.
Several of the metadata extracting tools define metadata based on image types and contain a common interface to view the metadata. I believe what you are trying to do is something similar to what metada-extractor does.
Anyway, this will by no doubt benefit the users at least with respect to extracting metadata.
If i want to read metadata i have to look into the sourcecode of
public void showMetadata()
to find out how to get data from each Metadata implementation.As a pixymeta user
i want a simple uniform api to get the desired meta-content
so that i donot have to learn much of the internals of the implementation.
I have started implementing this in my local
IMetaApi
branch of thehttps://github.com/k3b/pixymeta-android/
repository.The api can be used like this.
The text was updated successfully, but these errors were encountered: