---
title: "Get EXIF Thumbnail"
canonical: https://www.graphicsmill.com/samples/Metadata/EXIFAndIPTC/GetExifThumbnail_cs
product: "Graphics Mill"
source: "Metadata/EXIFAndIPTC/GetExifThumbnail.cs"
---

# Get EXIF Thumbnail

Gets thumbnail of image from its EXIF metadata.

## Instruction

Extract and save the EXIF thumbnail from a JPEG image.

## Usings

```csharp
using Aurigma.GraphicsMill.Codecs;
```

## Code Snippet

```csharp
using (var jpegReader = new JpegReader("Venice.jpg"))
using (var thumbnail = (Bitmap)jpegReader.Exif[ExifDictionary.Thumbnail])
using (var jpegWriter = new JpegWriter("GetExifThumbnail.jpg"))
{
    Pipeline.Run(thumbnail + jpegWriter);
}
```

## Explanation

The code:

- Reads the EXIF metadata from the input JPEG image.
- Extracts the thumbnail from the EXIF metadata.
- Writes the extracted thumbnail image to a new JPEG file.

## Tags

- [EXIF](<https://www.graphicsmill.com/samples/tags/exif_md>): Managing EXIF metadata
- [Read](<https://www.graphicsmill.com/samples/tags/read_md>): Reading images with codecs
- [Thumbnail](<https://www.graphicsmill.com/samples/tags/thumbnail_md>): Generating thumbnails from images

## Input

- [Venice.jpg](<https://www.graphicsmill.com/samples/Metadata/compiled/Debug/Venice_jpg>) (preview)

## Output

- [GetExifThumbnail.jpg](<https://www.graphicsmill.com/samples/Metadata/compiled/Debug/GetExifThumbnail_jpg>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.Codecs.ExifDictionary](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ExifDictionary.htm.md>)
- [Aurigma.GraphicsMill.Codecs.ImageReader.Exif](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_ImageReader_Exif.htm.md>)
- [Aurigma.GraphicsMill.Codecs.JpegReader](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_JpegReader.htm.md>)
- [Aurigma.GraphicsMill.Codecs.JpegWriter](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_JpegWriter.htm.md>)
