---
title: "CompressedImage.CreateFromFile Method "
canonical: https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_CompressedImage_CreateFromFile.htm
product: "Graphics Mill"
---

# CompressedImage.CreateFromFile Method 
 
Creates a [CompressedImage](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md).
 
## Overload List

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) ![Static member](https://www.graphicsmill.com/docs/gm/icons/static.gif) |  [CreateFromFile(String)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_CompressedImage_CreateFromFile_1_bb3a7a4f.htm.md) |  Creates a [CompressedImage](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md) directly from a file, keeping a PNG or JPEG source's encoded bytes as is instead of decoding and recompressing them. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) ![Static member](https://www.graphicsmill.com/docs/gm/icons/static.gif) |  [CreateFromFile(String, CompressionType)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_CompressedImage_CreateFromFile_2_b37a28d3.htm.md) |  Creates a [CompressedImage](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md) directly from a file. |
   
## See Also

### Reference

- [CompressedImage Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md)
- [CompressedImage Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_CompressedImage.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
