The Exif API provides interfaces and methods for manipulating Exif data from a JPEG file. The ExifManager object provides methods to retrieve the ExifInformation object from a JPEG file and save the Exif data from the ExifInformation object in the JPEG file. The ExifInformation object provides functionality to get and set the Exif attributes corresponding to the Exif tag. Changing the value of the attribute in the ExifInformation object stores the Exif data in the ExifInformation object. It does not change data in the JPEG file. For applying the modified Exif data to the JPEG file, the saveExifInfo() method of the ExifManager object should be called with the ExifInformation object that has the modified Exif data.
For more information about how to use Exif API, see Exif Guide.
NOT_DEFINED - Exposure program info is not present or is unknown
MANUAL - In the manual mode both shutter speed and aperture are independently set manually (with ISO sensitivity also set manually)
APERTURE_PRIORITY - aka A, Av(Aperture value) mode enables manual control of the aperture, and shutter speed is calculated by the camera for proper exposure (given an ISO sensitivity)
SHUTTER_PRIORITY - aka S, Tv(Time value) mode enables manual control of the shutter speed, and aperture is calculated by the camera for proper exposure (given an ISO sensitivity)
CREATIVE_PROGRAM - Program mode makes the camera calculate both shutter speed and aperture (given a manually or automatically selected ISO)
ACTION_PROGRAM - Action or sports modes increase ISO and use a faster shutter speed to capture an action
PORTRAIT_MODE - Portrait mode widens the aperture to throw the background out of focus. The camera may recognize and focus on a human face
LANDSCAPE_MODE - Landscape modes use a small aperture to gain depth of a field
2. Interfaces
2.1. ExifManagerObject
The ExifManagerObject interface defines what is instantiated by the Tizen object from the Tizen Platform. The tizen.exif object allows access to the Exif data of a JPEG file.
This dictionary is used to input parameters when ExifInformation is created. For description of attributes please see the corresponding attributes in the ExifInformation interface.
2.4. ExifInformation
The ExifInformation interface implements the ExifInformation object.
When the format of a value is given in the attribute description then this format should be followed when updating values.
Every Exif related attribute is nullable - null means that this information is missing in the file. By setting an attribute to null and saving ExifInformation one can remove that Exif tag from the file.
Constructors
ExifInformation(optional ExifInit? ExifInitDict);
Attributes
DOMString uri
URI of the image.
The path to the file from which ExifInformation data is collected.
Since 2.3
unsigned long width [nullable]
Width of the image i.e. the number of points (pixels) per image line.
Note if the value of this attribute is changed, the new value is not verified against the actual size of the image.
Since 2.3
unsigned long height [nullable]
Height of the image i.e. the number of lines in the image.
Note if the value of this attribute is changed, the new value is not verified against the actual size of the image.
Since 2.3
DOMString deviceMaker [nullable]
Name of the camera manufacturer.
Since 2.3
DOMString deviceModel [nullable]
Model name or model number of the camera or input device.
Since 2.3
Date originalTime [nullable]
Date and time when the picture was taken.
Since 2.3
ImageContentOrientation orientation [nullable]
Orientation of the image when displayed.
This attribute shows the relation between the stored image data and the visual content orientation. In other words - how a stored image should be oriented when presented to the user.
Since 2.3
double fNumber [nullable]
The f-number when the image was taken.
Exif specification: "Conversion is not made to the focal length of a 35 mm film".
The f-number is the ratio of the lens' focal length to the diameter of the entrance pupil. F-number is also called focal ratio, f-ratio, f-stop, or relative aperture. Example values: 1.4, 2, 2.8, 4, 5.6, 8, 11 ...
Since 2.3
unsigned short[] isoSpeedRatings [nullable]
Photo sensitivity (also called ISO speed and ISO latitude) of the camera or input device.
Example values: 80, 100, 200, 400, 800, 1600, 3200 ..
Since 2.3
DOMString exposureTime [nullable]
Exposure time, given in seconds.
If exposure time is below one second it is expressed as 1/x. For example: 1 second exposure is "1", 0.25s is "1/4".
Since 2.3
ExposureProgram exposureProgram [nullable]
Exposure balance program used by the camera to set exposure when the picture was taken.
Since 2.3
boolean flash [nullable]
Boolean value that indicates whether flash was fired when the picture was taken (true: flash fired).
Since 2.3
double focalLength [nullable]
Focal length of the lens, given in mm.
Since 2.3
WhiteBalanceMode whiteBalance [nullable]
White balance mode set when the picture was taken.
Since 2.3
SimpleCoordinates gpsLocation [nullable]
Latitude and longitude of the camera (from GPS) when the picture was taken.
Since 2.3
double gpsAltitude [nullable]
Altitude (from GPS) of the camera when the picture was taken.
This value is expressed in meters above sea level (can be negative).
Since 2.3
DOMString gpsProcessingMethod [nullable]
Name of the method used for finding the location.
Since 2.3
TZDate gpsTime [nullable]
Date and time information relative to UTC (Universal Time Coordinated) provided by GPS when the photo was taken.
Since 2.3
DOMString userComment [nullable]
User comment.
Since 2.3
2.5. ExifInformationSuccessCallback
The ExifInformationSuccessCallback interface provides a success callback that is invoked when the Exif information object has been retrieved. This callback interface specifies a success method with an ExifInformation object as an input parameter. It is used in exif.getExifInfo().
Called when the Exif information object has been successfully retrieved.
void onsuccess(ExifInformation exifInfo);
Since 2.3
Parameters:
exifInfo: ExifInformation to be retrieved
2.6. ExifThumbnailSuccessCallback
The ExifThumbnailSuccessCallback interface provides a success callback that is invoked when the Exif thumbnail has been retrieved. This callback interface specifies a success method with the URI for the thumbnail as an input parameter. It is used in exif.getThumbnail().
We use cookies to improve your experience on our website and to show you relevant
advertising. Manage you settings for our cookies below.
Essential Cookies
These cookies are essential as they enable you to move around the website. This
category cannot be disabled.
Company
Domain
Samsung Electronics
.samsungdeveloperconference.com
Analytical/Performance Cookies
These cookies collect information about how you use our website. for example which
pages you visit most often. All information these cookies collect is used to improve
how the website works.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Functionality Cookies
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and
tailor the website to provide enhanced features and content for you.
Company
Domain
LinkedIn
.ads.linkedin.com, .linkedin.com
Advertising Cookies
These cookies gather information about your browser habits. They remember that
you've visited our website and share this information with other organizations such
as advertisers.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Preferences Submitted
You have successfully updated your cookie preferences.