ExifData Class
Contents
[
Hide
]Summary: EXIF data container.
Module: aspose.imaging.exif
Full Name: aspose.imaging.exif.ExifData
Inheritance: IImageMetadataFormat, TiffDataTypeController
Constructors
| Name | Description |
|---|---|
| ExifData() | Initializes a new instance of the ExifData class. |
| ExifData(common_tags, exif_tags, gps_tags) | Initializes a new instance of the ExifData class with data from array. |
| ExifData(exifdata) | Initializes a new instance of the ExifData class with data from array. |
| ExifData(exifdata) | Initializes a new instance of the ExifData class with data from array. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| aperture_value | TiffRational | r/w | Gets or sets the aperture value. |
| body_serial_number | string | r/w | Gets or sets camera body serial number. |
| brightness_value | TiffSRational | r/w | Gets or sets the brightness value. |
| camera_owner_name | string | r/w | Gets or sets camera owner name |
| cfa_pattern | System.Byte | r/w | Gets or sets the CFA pattern. |
| color_space | ExifColorSpace | r/w | Gets or sets the color space. |
| common_tags | TiffDataType[] | r/w | Gets or sets tags, which belong to common section. This applies only to jpeg images, in tiff format tiffOptions are being used instead |
| components_configuration | System.Byte | r/w | Gets or sets the components configuration. |
| compressed_bits_per_pixel | TiffRational | r/w | Gets or sets the compressed bits per pixel. |
| contrast | ExifContrast | r/w | Gets or sets the contrast. |
| custom_rendered | ExifCustomRendered | r/w | Gets or sets the custom rendered. |
| date_time_digitized | string | r/w | Gets or sets the date time digitized. |
| date_time_original | string | r/w | Gets or sets the date time original. |
| device_setting_description | System.Byte | r/w | Gets or sets device settings description |
| digital_zoom_ratio | TiffRational | r/w | Gets or sets the digital zoom ratio. |
| exif_tags | TiffDataType[] | r/w | Gets or sets tags which belong to EXIF section only. |
| exif_version | System.Byte | r/w | Gets or sets the EXIF version. |
| exposure_bias_value | TiffSRational | r/w | Gets or sets the exposure bias value. |
| exposure_index | TiffRational | r/w | Gets or sets the exposure index. |
| exposure_mode | ExifExposureMode | r/w | Gets or sets the exposure mode. |
| exposure_program | ExifExposureProgram | r/w | Gets or sets the exposure program. |
| exposure_time | TiffRational | r/w | Gets or sets the exposure time. |
| f_number | TiffRational | r/w | Gets or sets the F-number. |
| file_source | ExifFileSource | r/w | Gets or sets the file source type. |
| flash | ExifFlash | r/w | Gets or sets the flash. |
| flash_energy | TiffRational | r/w | Gets or sets the flash energy. |
| flashpix_version | System.Byte | r/w | Gets or sets the flash pix version. |
| focal_length | TiffRational | r/w | Gets or sets the focal length. |
| focal_length_in_35_mm_film | int | r/w | Gets or sets the focal length in 35 mm film. |
| focal_plane_resolution_unit | ExifUnit | r/w | Gets or sets the focal plane resolution unit. |
| focal_plane_x_resolution | TiffRational | r/w | Gets or sets the focal plane x resolution. |
| focal_plane_y_resolution | TiffRational | r/w | Gets or sets the focal plane y resolution. |
| gain_control | ExifGainControl | r/w | Gets or sets the degree of overall image gain adjustment. |
| gamma | TiffRational | r/w | Gets or sets the gamma. |
| gps_altitude | TiffRational | r/w | Gets or sets the GPS altitude. |
| gps_altitude_ref | ExifGPSAltitudeRef | r/w | Gets or sets the GPS altitude used as the reference altitude. |
| gps_area_information | System.Byte | r/w | Gets or sets the GPS area information. |
| gps_date_stamp | string | r/w | Gets or sets the GPS character string recording date and time information relative to UTC (Coordinated Universal Time). |
| gps_dest_bearing | TiffRational | r/w | Gets or sets the GPS bearing to the destination point. |
| gps_dest_bearing_ref | string | r/w | Gets or sets the GPS reference used for giving the bearing to the destination point. |
| gps_dest_distance | TiffRational | r/w | Gets or sets the GPS distance to the destination point. |
| gps_dest_distance_ref | string | r/w | Gets or sets the GPS unit used to express the distance to the destination point. |
| gps_dest_latitude | TiffRational[] | r/w | Gets or sets the GPS latitude of the destination point. |
| gps_dest_latitude_ref | string | r/w | Gets or sets the GPS value which indicates whether the latitude of the destination point is north or south latitude. |
| gps_dest_longitude | TiffRational[] | r/w | Gets or sets the GPS longitude of the destination point. |
| gps_dest_longitude_ref | string | r/w | Gets or sets the GPS value which indicates whether the longitude of the destination point is east or west longitude. |
| gps_differential | int | r/w | Gets or sets a GPS value which indicates whether differential correction is applied to the GPS receiver. |
| gps_img_direction | TiffRational | r/w | Gets or sets the GPS direction of the image when it was captured. |
| gps_img_direction_ref | string | r/w | Gets or sets the GPS reference for giving the direction of the image when it is captured. |
| gps_latitude | TiffRational[] | r/w | Gets or sets the GPS latitude. |
| gps_latitude_ref | string | r/w | Gets or sets the GPS latitude is north or south latitude. |
| gps_longitude | TiffRational[] | r/w | Gets or sets the GPS longitude. |
| gps_longitude_ref | string | r/w | Gets or sets the GPS longitude is east or west longitude. |
| gps_map_datum | string | r/w | Gets or sets the GPS geodetic survey data used by the GPS receiver. |
| gps_measure_mode | string | r/w | Gets or sets the GPS measurement mode. |
| gps_processing_method | System.Byte | r/w | Gets or sets the GPS character string recording the name of the method used for location finding. |
| gps_satellites | string | r/w | Gets or sets the GPS satellites used for measurements. |
| gps_speed | TiffRational | r/w | Gets or sets the speed of GPS receiver movement. |
| gps_speed_ref | string | r/w | Gets or sets the unit used to express the GPS receiver speed of movement. |
| gps_status | string | r/w | Gets or sets the status of the GPS receiver when the image is recorded. |
| gps_tags | TiffDataType[] | r/w | Gets or sets tags, which belong to GPS section only. |
| gps_timestamp | TiffRational[] | r/w | Gets or sets the GPS time as UTC (Coordinated Universal Time). |
| gps_track | string | r/w | Gets or sets direction of GPS receiver movement. |
| gps_track_ref | string | r/w | Gets or sets the reference for giving the direction of GPS receiver movement. |
| gps_version_id | System.Byte | r/w | Gets or sets the GPS version identifier. |
| gpsdop | TiffRational | r/w | Gets or sets the GPS DOP (data degree of precision). |
| image_unique_id | string | r/w | Gets or sets the image unique identifier. |
| is_big_endian | bool | r/w | Gets or sets a value indicating whether the stream EXIF data created from is big endian. |
| iso_speed | int | r/w | Gets or sets ISO speed |
| iso_speed_latitude_yyy | int | r/w | Gets or sets the ISO speed latitude yyy value of a camera or input device that is defined in ISO 12232. |
| iso_speed_latitude_zzz | int | r/w | Gets or sets the ISO speed latitude zzz value of a camera or input device that is defined in ISO 12232. |
| lens_make | string | r/w | Gets or sets the maker of lens. |
| lens_model | string | r/w | Gets or sets the lens model. |
| lens_serial_number | string | r/w | Gets or sets the lens serial number. |
| lens_specification | TiffRational[] | r/w | Gets or sets the lens specification |
| light_source | ExifLightSource | r/w | Gets or sets the light source. |
| make | string | r/w | Gets or sets the manufacturer of the recording equipment. |
| maker_note_data | TiffDataType[] | r | Gets the maker note data. |
| maker_note_raw_data | System.Byte | r/w | Gets or sets the maker note raw data. |
| maker_notes | MakerNote[] | r | Gets the maker notes. |
| max_aperture_value | TiffRational | r/w | Gets or sets the maximum aperture value. |
| metering_mode | ExifMeteringMode | r/w | Gets or sets the metering mode. |
| oecf | System.Byte | r/w | Gets or sets the Opto-Electric Conversion Function (OECF) specified in ISO 14524. |
| orientation | ExifOrientation | r/w | Gets or sets the orientation. |
| photographic_sensitivity | int | r/w | Gets or sets the photographic sensitivity. |
| pixel_x_dimension | int | r/w | Gets or sets the pixel x dimension. |
| pixel_y_dimension | int | r/w | Gets or sets the pixel y dimension. |
| properties | TiffDataType[] | r/w | Gets or sets all the EXIF tags (including common and GPS tags). |
| recommended_exposure_index | int | r/w | Gets or sets the recommended exposure index. |
| related_sound_file | string | r/w | Gets or sets the related sound file. |
| saturation | ExifSaturation | r/w | Gets or sets the saturation. |
| scene_capture_type | ExifSceneCaptureType | r/w | Gets or sets the scene capture type. |
| scene_type | System.Byte | r/w | Gets or sets the scene type. |
| sensing_method | ExifSensingMethod | r/w | Gets or sets the sensing method. |
| sensitivity_type | int | r/w | Gets or sets the sensitivity type. |
| sharpness | int | r/w | Gets or sets the sharpness. |
| shutter_speed_value | TiffSRational | r/w | Gets or sets the shutter speed value. |
| spatial_frequency_response | System.Byte | r/w | Gets or sets the spatial frequency response. |
| spectral_sensitivity | string | r/w | Gets or sets the spectral sensitivity. |
| standard_output_sensitivity | int | r/w | Gets or sets standard output sensitivity |
| subject_area | int[] | r/w | Gets or sets the subject area. |
| subject_distance | TiffRational | r/w | Gets or sets the subject distance. |
| subject_distance_range | ExifSubjectDistanceRange | r/w | Gets or sets the subject distance range. |
| subject_location | int[] | r/w | Gets or sets the subject location. |
| subsec_time | string | r/w | Gets or sets the fractions of seconds for the DateTime tag. |
| subsec_time_digitized | string | r/w | Gets or sets the fractions of seconds for the DateTimeDigitized tag. |
| subsec_time_original | string | r/w | Gets or sets the fractions of seconds for the DateTimeOriginal tag. |
| thumbnail | RasterImage | r/w | Gets or sets the thumbnail image. |
| user_comment | string | r/w | Gets or sets the user comment. |
| white_balance | ExifWhiteBalance | r/w | Gets or sets the white balance. |
| white_point | TiffRational[] | r/w | Gets or sets the chromaticity of the white point of the image. |
Methods
| Name | Description |
|---|---|
| remove_tag(tag) | Remove tag from container |
| remove_tag(tag_id) | Remove tag from container |
| remove_tag_id(tag_id) | Remove tag from container |
Constructor: ExifData()
ExifData()
Initializes a new instance of the ExifData class.
Constructor: ExifData(common_tags, exif_tags, gps_tags)
ExifData(common_tags, exif_tags, gps_tags)
Initializes a new instance of the ExifData class with data from array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| common_tags | TiffDataType[] | The common tags. |
| exif_tags | TiffDataType[] | The EXIF tags. |
| gps_tags | TiffDataType[] | The GPS tags. |
Constructor: ExifData(exifdata)
ExifData(exifdata)
Initializes a new instance of the ExifData class with data from array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| exifdata | TiffDataType[] | Array of EXIF tags together with common and GPS tags. |
Constructor: ExifData(exifdata)
ExifData(exifdata)
Initializes a new instance of the ExifData class with data from array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| exifdata | ExifData | Array of EXIF tags together with common and GPS tags. |
Property: maker_notes
Gets the maker notes.
See also:
Example # 1: Access camera manufacturer maker notes in Jpeg image.
Method: remove_tag(tag)
remove_tag(tag)
Remove tag from container
Parameters:
| Parameter | Type | Description |
|---|---|---|
| tag | ExifProperties | The tag to remove |
Method: remove_tag(tag_id)
remove_tag(tag_id)
Remove tag from container
Parameters:
| Parameter | Type | Description |
|---|---|---|
| tag_id | int | The tag identifier to remove. |
Method: remove_tag_id(tag_id)
remove_tag_id(tag_id)
Remove tag from container
Parameters:
| Parameter | Type | Description |
|---|---|---|
| tag_id | int | The tag identifier to remove. |
Examples
Access camera manufacturer maker notes in Jpeg image.
from aspose.pycore import as_of
from aspose.imaging import Image
from aspose.imaging.fileformats.jpeg import JpegImage
with as_of(Image.load("Sample.jpg"), JpegImage) as image:
for makerNote in image.exif_data.maker_notes:
print(f"Name = {makerNote.name}, Value = {makerNote.value}")