readExif

Reads the exif tags from a file, clearing this ExifInterface object's existing exif tags.

See also

#readExif(InputStream, int)
Link copied to clipboard

Parameters

inFileName

a string representing the filepath to jpeg file.

options

bit flag which defines which type of tags to process, see Exify.Options

open fun readExif(inFileName: String, options: Int)

Reads the exif tags from an InputStream, clearing this ExifInterface object's existing exif tags.

    ExifInterface exif = new ExifInterface();
    exif.readExif( stream, Options.OPTION_IFD_0 | Options.OPTION_IFD_1 | Options.OPTION_IFD_EXIF );
    ...
    // to request all the options use the OPTION_ALL bit mask
    exif.readExif( stream, Options.OPTION_ALL );

Parameters

inStream

an InputStream containing a jpeg compressed image.

options

bit flag which defines which type of tags to process, see Exify.Options

open fun readExif(inStream: InputStream, options: Int)

Reads the exif tags from a byte array, clearing this ExifInterface object's existing exif tags.

See also

#readExif(InputStream, int)
Link copied to clipboard

Parameters

jpeg

a byte array containing a jpeg compressed image.

options

bit flag which defines which type of tags to process, see Exify.Options

open fun readExif(jpeg: Array<Byte>, options: Int)