---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/imageinfo
---

# ImageInfo

## Overview

`ImageInfo` is a type in Aspose.PDF FOSS for Go.

ImageInfo holds metadata about an image found on a page without decoding pixel data.

This type declares 4 methods for ImageInfo objects in Go programs.
Available methods include: `Extract`, `Remove`, `Replace`, `ReplaceFromStream`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Properties: `BPC`, `ColorSpace`, `Format`, `Height`, `Inline`, `Name`, and 5 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Width` | `int` | Read/Write | Gets the width. |
| `Height` | `int` | Read/Write | Gets the height. |
| `BPC` | `int` | Read/Write | Gets the bpc. |
| `ColorSpace` | `ImageColorSpace` | Read/Write | Gets the color space. |
| `Format` | `ImageFormat` | Read/Write | Gets the format. |
| `X` | `float64` | Read/Write | Gets the x. |
| `Y` | `float64` | Read/Write | Gets the y. |
| `PageWidth` | `float64` | Read/Write | Gets the page width. |
| `PageHeight` | `float64` | Read/Write | Gets the page height. |
| `Inline` | `bool` | Read/Write | Gets the inline. |
| `Name` | `string` | Read/Write | Gets the name. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Extract()` → `(*Image, error)` | Extract decodes the image and returns the full Image with pixel data. |
| `Remove()` → `error` | Remove removes the image from the page. |
| `Replace(path: string)` → `error` | Replace replaces the image data with a new image from a file. |
| `ReplaceFromStream(r: io.Reader)` → `error` | ReplaceFromStream replaces the image data with a new image from a reader. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)