# `Astral.Image.Config`
[🔗](https://github.com/elixir-volt/astral/blob/v0.7.0/lib/astral/image/config.ex#L1)

Configuration for Astral's build-time image pipeline.

Astral writes optimized image variants into the same browser asset output
directory as Volt-managed JavaScript and CSS, while keeping image semantics in
Astral. The cache directory stores generated variants between builds.

# `t`

```elixir
@type t() :: %Astral.Image.Config{
  cache_dir: String.t(),
  concurrency: pos_integer(),
  default_format: atom(),
  fallback_format: atom(),
  formats: [atom()],
  quality: pos_integer(),
  remote_patterns: [Astral.Image.Remote.Pattern.t()],
  source_dirs: [String.t()],
  widths: [pos_integer()]
}
```

# `new`

```elixir
@spec new(
  keyword(),
  Astral.Config.t() | nil
) :: t()
```

Build normalized image configuration from site options.

---

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