---
title: "GifWriter..::.Optimized Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_GifWriter_Optimized.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# GifWriter.Optimized Property 
 
Gets/sets a value that specifies if the image is optimized.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Property Optimized As Boolean
```
 
```csharp
public bool Optimized { get; set; }
```
 
### Property Value
Value that specifies if the image is optimized.
 
## Remarks
  
When the optimization is enabled, the following algorithms are applied:
 
- Global palette common to all frames is generated, and all frames are using this palette. To control this algorithm, use the [BasisOptimizationFrameCount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_GifWriter_BasisOptimizationFrameCount.htm.md) and [LastFrame](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_GifFrame_LastFrame.htm.md) properties.
- If the neigbour frames have the same portions of the image the frame is automatically cropped (if possible).
- If some pixels in the neigbour frames are the same, they are replaced by the transparent ones (if possible).
   
## See Also

### Reference

- [GifWriter Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_GifWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
