FlutterExif class

Constructors

FlutterExif.fromBytes(Uint8List imageData)
FlutterExif.fromPath(String pathToImage)

Properties

hashCode int
The hash code for this object.
no setterinherited
hasThumbnail Future<bool?>
Returns true if the image file has a thumbnail.
no setter
imageData Future<Uint8List?>
Returns the value of the specified tag or null if there is no such tag in the image file.
no setter
isFlipped Future<bool?>
Returns if the current image orientation is flipped.
no setter
isThumbnailCompressed Future<bool?>
Returns true if thumbnail image is JPEG Compressed, or false if either thumbnail image does not exist or thumbnail image is uncompressed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailBytes Future<Uint8List?>
Returns the thumbnail bytes inside the image file, regardless of the compression type of the thumbnail ima
no setter
thumbnailRange Future<Int64List?>
Returns the offset and length of thumbnail inside the image file, or null if either there is no thumbnail or the thumbnail bytes are stored non-consecutively.
no setter

Methods

flipHorizontally() Future<void>
Flips the image horizontally.
flipVertically() Future<void>
Flips the image vertically.
getAltitude(double defaultValue) Future<double?>
Return the altitude in meters. If the exif tag does not exist, return defaultValue.
getAttribute(String tag) Future<String?>
Returns the value of the specified tag or null if there is no such tag in the image file.
getAttributeBytes(String tag) Future<Uint8List?>
Returns the raw bytes for the value of the requested tag inside the image file, or null if the tag is not contained.
getAttributeDouble(String tag, double defaultValue) Future<double?>
Returns the double value of the tag that is specified as rational or contains a double-formatted value. If there is no such tag in the image file or the value cannot be parsed as double, return defaultValue.
getAttributeInt(String tag, int defaultValue) Future<int?>
Returns the integer value of the specified tag. If there is no such tag in the image file or the value cannot be parsed as integer, return defaultValue.
getAttributeRange(String tag) Future<Int64List?>
Returns the offset and length of the requested tag inside the image file, or null if the tag is not contained.
getLatLong() Future<Float64List?>
Gets the latitude and longitude values.
getRotationDegrees() Future<int?>
Returns the rotation degrees for the current image orientation. If the image is flipped, i.e., isFlipped() returns true, the rotation degrees will be base on the assumption that the image is first flipped horizontally (along Y-axis), and then do the rotation. For example, ORIENTATION_TRANSPOSE will be interpreted as flipped horizontally first, and then rotate 270 degrees clockwise.
getThumbnail() Future<Uint8List?>
Returns the JPEG compressed thumbnail inside the image file, or null if there is no JPEG compressed thumbnail. The returned data can be decoded using BitmapFactory#decodeByteArray(byte[],int,int)
hasAttribute(String tag) Future<bool?>
Returns true if the image file has the given attribute defined.
isSupportedMimeType(String mimeType) Future<bool?>
Returns whether ExifInterface currently supports reading data from the specified mime type or not.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetOrientation() Future<void>
Resets the TAG_ORIENTATION of the image to be ORIENTATION_NORMAL
rotate(int degree) Future<void>
Rotates the image by the given degree clockwise. The degree should be a multiple of 90 (e.g, 90, 180, -90, etc.).
saveAttributes() Future<void>
Save the tag data into the original image file. This is expensive because it involves copying all the data from one file to another and deleting the old file and renaming the other. It's best to set all attributes to write and make a single call rather than multiple calls for each attribute.
setAltitude(double altitude) Future<void>
Sets the altitude value.
setAttribute(String tag, String tagValue) Future<void>
setLatLong(double latitude, double longitude) Future<void>
Sets the latitude and longitude values.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

channel → const MethodChannel