# Image

## Image by URL

Display an image based on a URL. You can host URLs using [Published Folders](https://docs.powershelluniversal.com/platform/published-folders).

```powershell
New-UDImage -Url "https://ironmansoftware.com/img/ps-logo.png"
```

## Image by Path

Display an image based on a file local to the server.

```powershell
New-UDImage -Path C:\users\adamr\Desktop\ps-logo.png
```

## Image Size

Change the size of the image using the `-Width` and `-Height` parameters.

```powershell
New-UDImage -Url "https://ironmansoftware.com/img/ps-logo.png" -Width 250 -Height 250
```

## Attributes

Apply additional attributes to the image.

```powershell
New-UDImage -Url "https://ironmansoftware.com/img/ps-logo.png" -Attributes @{
    alt = "Ironman Software Logo"
}
```

## API

* [New-UDImage](https://github.com/ironmansoftware/universal-docs/blob/v5/cmdlets/New-UDImage.txt)
