# `Membrane.Smelter.Request.RegisterImage`
[🔗](https://github.com/membraneframework/membrane_smelter_plugin/blob/v0.12.2/lib/membrane/smelter/request.ex#L11)

Request to register an image.

# `image_type`

```elixir
@type image_type() :: :png | :jpeg | :gif | :svg
```

Image type

# `t`

```elixir
@type t() :: %Membrane.Smelter.Request.RegisterImage{
  asset_type: image_type(),
  image_id: String.t(),
  path: String.t() | nil,
  resolution: %{width: non_neg_integer(), height: non_neg_integer()} | nil,
  url: String.t() | nil
}
```

- Fields `url` and `path` are mutually exclusive. Exactly one of them should be set at the time.
- Field `resolution` is only supported when `:asset_type` is set to `:svg`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
