Android-Exif-Extended (Java)

Exif extended library (java) for Android, based on jhead c library (http://www.sentex.net/~mwandel/jhead/)

License

License

Public Domain Software
Categories

Categories

Java Languages
GroupId

GroupId

it.sephiroth.android.library.media
ArtifactId

ArtifactId

library-java
Last Version

Last Version

2.97
Release Date

Release Date

Type

Type

aar
Description

Description

Android-Exif-Extended (Java)
Exif extended library (java) for Android, based on jhead c library (http://www.sentex.net/~mwandel/jhead/)
Project URL

Project URL

http://blog.sephiroth.it
Source Code Management

Source Code Management

https://github.com/sephiroth74/Android-Exif-Extended

Download library-java

How to add to project

<!-- https://jarcasting.com/artifacts/it.sephiroth.android.library.media/library-java/ -->
<dependency>
    <groupId>it.sephiroth.android.library.media</groupId>
    <artifactId>library-java</artifactId>
    <version>2.97</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/it.sephiroth.android.library.media/library-java/
implementation 'it.sephiroth.android.library.media:library-java:2.97'
// https://jarcasting.com/artifacts/it.sephiroth.android.library.media/library-java/
implementation ("it.sephiroth.android.library.media:library-java:2.97")
'it.sephiroth.android.library.media:library-java:aar:2.97'
<dependency org="it.sephiroth.android.library.media" name="library-java" rev="2.97">
  <artifact name="library-java" type="aar" />
</dependency>
@Grapes(
@Grab(group='it.sephiroth.android.library.media', module='library-java', version='2.97')
)
libraryDependencies += "it.sephiroth.android.library.media" % "library-java" % "2.97"
[it.sephiroth.android.library.media/library-java "2.97"]

Dependencies

compile (1)

Group / Artifact Type Version
it.sephiroth.android.library.media : library-native jar 2.97

Project Modules

There are no modules declared in this project.

Android-Exif-Extended

Description

Exif library for Android. It's based on the android [ExifInterface] 1 and on the [Jhead] 2 c library

Import

Just add this line to your dependency group:

compile 'it.sephiroth.android.exif:library:+'

Usage

import it.sephiroth.android.library.exif2.ExifInterface;
import it.sephiroth.android.library.exif2.ExifTag;

ExifInterface exif = new ExifInterface();
exif.readExif( filename, ExifInterface.Options.OPTION_ALL );

// list of all tags found
List<ExifTag> all_tags = exif.getAllTags();

// jpeg quality
int jpeg_quality =  exif.getQualityGuess()

// image size
int[] imagesize = exif.getImageSize();

// process used to create the jpeg file
short process = exif.getJpegProcess();

// gps lat-lon
double[] latlon = exif.getLatLongAsDoubles();


....
// save
exif.writeExif( src_file, dst_file );

License

This software is licensed under the Apache 2 license, quoted below.

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.

See Also

For more informations about Exif Format see [exifStandard2.pdf] 3

Versions

Version
2.97