Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To access EXIF Metadata in JPEG image, GroupDocs.Metadata provides JpegFormat.GetExifInfo() function which returns all EXIF metadata properties in JpegExifInfo ExifInfo object. Following are the steps to access EXIF properties.

  1. Initialize JpegFormat
  2. Get EXIF properties in JpegExifInfo ExifInfo object using jpegFormat.getExifInfo()
  3. Access any EXIF property using JpegExifInfo ExifInfo object i-e exif.getArtist()

...

  1. Initialize JpegFormat
  2. Get EXIF properties in JpegExifInfoExifInfo  object using jpegFormat.getExifInfo()
  3. You can get EXIF properties using tag by using exifInfo.readByTagId(TiffTagIdEnum.Artist)

...

  1. Initialize JpegFormat
  2. Get EXIF properties in JpegExifInfo ExifInfo object using jpegFormat.getExifInfo()
  3. You can assign the value to each EXIF property i-e exif.setArtist("test artist")
  4. Save image using jpegFormat.save() to commit changes

...

  1. Initialize JpegFormat
  2. Use (JpegExifInfoExifInfo)JpegFormat.getExifValues to read EXIF metadata
  3. Set metadata property Artist by using JpegExifInfoExifInfo.setArtist = "test artist" 
  4. Save image using JpegFormat.save("output.jpeg") to commit changes

...