Type Default Value Read Only Static Description
Byte[] None Yes No The byte sequence of the jpeg thumbnail image within the Exif data.
Notes

This property allows you to access the jpeg thumbnail image as it appears within the Exif data.

For details of the way in which Exif data can be parsed, please refer to http://www.exif.org.

See Also

Xml

Example

[C#]

XImageLoadOptions loadOptions = new XImageLoadOptions();
loadOptions.ReadExif = true;
XImage image = XImage.FromFile(Server.MapPath("rez/myexif.jpg"), loadOptions);
if (image.Exif != null) {
  byte[] bytes = image.Exif.Thumbnail;
  if (bytes.Length > 0) {
    File.WriteAllBytes(Server.MapPath("Thumbnail.jpg"), bytes);
  }
}


[Visual Basic]

Dim loadOptions As New XImageLoadOptions()
loadOptions.ReadExif = True
Dim image As XImage = XImage.FromFile(Server.MapPath("rez/myexif.jpg"), loadOptions)
If image.Exif IsNot Nothing Then
  Dim bytes As Byte() = image.Exif.Thumbnail
  If bytes.Length > 0 Then
    File.WriteAllBytes(Server.MapPath("Thumbnail.jpg"), bytes)
  End If
End If


This example illustrates how to retrieve and save the exif thumbnail image.