# `Imp.Adapter.Types.Image`
[🔗](https://github.com/deepfates/imp/blob/v0.18.1/lib/imp/adapter/types.ex#L15)

An inert image value backed by a remote reference or in-memory data.

`from_path/1` and `from_url/2` perform explicit eager I/O and return a
data-backed value. `from_url/2` accepts only HTTP(S); callers must validate
untrusted hosts against their own allowlist because redirects and private
network destinations are otherwise reachable.

# `t`

```elixir
@type t() :: %Imp.Adapter.Types.Image{
  data: term(),
  metadata: term(),
  mime_type: term(),
  url: term()
}
```

# `from_path`

Reads a trusted local image immediately into an inert value.

# `from_url`

Downloads an HTTP(S) image immediately into an inert value.

Options include `:timeout` in milliseconds (default `30_000`). `:request`
may inject an arity-2 transport for deterministic tests.

---

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