ExifPackage Class
Represents an EXIF metadata package (Exchangeable Image File Format).
Inheritance Hierarchy
SystemObject
  GroupDocs.Metadata.CommonMetadataPackage
    GroupDocs.Metadata.CommonCustomPackage
      GroupDocs.Metadata.Standards.ExifExifDictionaryBasePackage
        GroupDocs.Metadata.Standards.ExifExifPackage

Namespace: GroupDocs.Metadata.Standards.Exif
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 20.11
Syntax
public class ExifPackage : ExifDictionaryBasePackage

The ExifPackage type exposes the following members.

Constructors
  NameDescription
Public methodExifPackage
Initializes a new instance of the ExifPackage class.
Properties
  NameDescription
Public propertyArtist
Gets or sets the name of the camera owner, photographer or image creator.
Public propertyCopyright
Gets or sets the copyright notice.
Public propertyCount
Gets the number of metadata properties.
(Inherited from MetadataPackage.)
Public propertyDateTime
Gets or sets the date and time of image creation. In the EXIF standard, it is the date and time the file was changed.
Public propertyExifIfdPackage
Gets the EXIF IFD data.
Public propertyGpsPackage
Gets the GPS data.
Public propertyImageDescription
Gets or sets a character string giving the title of the image. It may be a comment such as "1988 company picnic" or the like.
Public propertyImageLength
Gets or sets the number of rows of image data.
Public propertyImageWidth
Gets or sets the number of columns of image data, equal to the number of pixels per row.
Public propertyItemString
Gets the MetadataProperty with the specified name.
(Inherited from MetadataPackage.)
Public propertyCode exampleItemTiffTagID
Gets the TIFF tag with the specified id.
(Inherited from ExifDictionaryBasePackage.)
Public propertyKeys
Gets a collection of the metadata property names.
(Inherited from MetadataPackage.)
Public propertyKnowPropertyDescriptors
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.)
Public propertyMake
Gets or sets the manufacturer of the recording equipment. This is the manufacturer of the DSC, scanner, video digitizer or other equipment that generated the image.
Public propertyMetadataType
Gets the metadata type.
(Inherited from MetadataPackage.)
Public propertyModel
Gets or sets the model name or model number of the equipment. This is the model name or number of the DSC, scanner, video digitizer or other equipment that generated the image.
Public propertySoftware
Gets or sets the name and version of the software or firmware of the camera or image input device used to generate the image.
Public propertyThumbnail
Gets the image thumbnail represented as an array of bytes.
Methods
  NameDescription
Public methodAddProperties
Adds known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodClear
Removes all TIFF tags stored in the package.
(Inherited from ExifDictionaryBasePackage.)
Public methodContains
Determines whether the package contains a metadata property with the specified name.
(Inherited from MetadataPackage.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindProperties
Finds the metadata properties satisfying the specified predicate. The search is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from MetadataPackage.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Removes the property with the specified id.
(Inherited from ExifDictionaryBasePackage.)
Public methodRemoveProperties
Removes metadata properties satisfying the specified predicate.
(Inherited from MetadataPackage.)
Public methodSanitize
Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodCode exampleSet
Adds or replaces the specified tag.
(Inherited from ExifDictionaryBasePackage.)
Public methodSetProperties
Sets known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. This method is a combination of AddProperties(FuncMetadataProperty, Boolean, PropertyValue) and UpdateProperties(FuncMetadataProperty, Boolean, PropertyValue). If an existing property satisfies the predicate its value is updated. If there is a known property missing in the package that satisfies the predicate it is added to the package.
(Inherited from MetadataPackage.)
Public methodCode exampleToList
Creates a list from the package.
(Inherited from ExifDictionaryBasePackage.)
Public methodToString (Inherited from Object.)
Public methodUpdateProperties
Updates known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Remarks
Examples
This code sample demonstrates how to update common EXIF properties.
C#
using (Metadata metadata = new Metadata(Constants.InputJpeg))
{
    IExif root = metadata.GetRootPackage() as IExif;
    if (root != null)
    {
        // Set the EXIF package if it's missing
        if (root.ExifPackage == null)
        {
            root.ExifPackage = new ExifPackage();
        }

        root.ExifPackage.Copyright = "Copyright (C) 2011-2020 GroupDocs. All Rights Reserved.";
        root.ExifPackage.ImageDescription = "test image";
        root.ExifPackage.Software = "GroupDocs.Metadata";

        // ...

        root.ExifPackage.ExifIfdPackage.BodySerialNumber = "test";
        root.ExifPackage.ExifIfdPackage.CameraOwnerName = "GroupDocs";
        root.ExifPackage.ExifIfdPackage.UserComment = "test comment";

        // ...

        metadata.Save(Constants.OutputJpeg);
    }
}
See Also