---
title: "TiffWriter.Compression Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffWriter_Compression.htm
product: "Graphics Mill"
---

# TiffWriter.Compression Property 
 
Gets or sets a compression type to write the image with.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public CompressionType Compression { get; set; }
```
 
### Property Value
A [CompressionType](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) to write the image with. The default value is [None](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md).
 
## Remarks
  
TIFF format supports the following compression types:
 
|  Compression Type |  Limitations |
| --- | --- |
 |  **[None](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)** |  No limitations. |
 |  **[Ccitt3](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)** |  For 1-bit images only. |
 |  **[Ccitt4](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)** |  For 1-bit images only. |
 |  **[CcittRle](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)** |  For 1-bit images only. |
 |  **[Jpeg](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)** |  Can be used only with those pixel formats which are supported by JPEG (non-extended and non-indexed grayscale, RGB, and CMYK images). To adjust JPEG quality, use [Quality](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffSettings_Quality.htm.md) property. |
 |  **[Rle](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)** |  Has no limitations, but works better with indexed images. |
 |  **[Lzw](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)** |  No limitations. |
 |  **[Zip](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)** |  No limitations. |
   
## See Also

### Reference

- [TiffWriter Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_TiffWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
