> For the complete documentation index, see [llms.txt](https://imgo.gitbook.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://imgo.gitbook.io/en/introduction/formats.md).

# Supported Formats

Image & color supported formats

## Image Formats

The format of an image is judged by the first few bytes of the image, which are called [Magic Numbers or Magic Bytes](https://en.wikipedia.org/wiki/List_of_file_signatures).

&#x20;Following image formats are supported in ImGo.

<table><thead><tr><th width="156.6756096947123">Formats</th><th>Mimetype</th></tr></thead><tbody><tr><td>jpg</td><td>image/jpeg</td></tr><tr><td>png</td><td>image/png</td></tr><tr><td>bmp</td><td>image/x-ms-bmp</td></tr><tr><td>tiff</td><td>image/tiff</td></tr><tr><td>webp</td><td>image/webp</td></tr></tbody></table>

## Color Formats

ImGo only supports color types that implement the `color.Color` interface.

It is recommended to use the color of `golang.org/x/image/colornames` package, which contains a large number of commonly defined colors.

```go
colornames.Blueviolet
colornames.Gold
colornames.Darkblue
colornames.Tomato
```

You can also use the colors of the buildin package `image/color`, which has only a few defined colors.

```go
color.Black
color.White
color.Transparent
```

Colors can also be customized:

```
color.RGBA{255, 255, 0, 255}
```
