Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/fieldtypes/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,20 @@ Convert the image to WEBP format. Additionally all the `:resize` manipulations c
| master_dim | `auto`/`width`/`height` | `auto`| Master dimension when only width of height is specified |


### `:avif`

{news_image:avif}

Convert the image to AVIF format. Additionally all the `:resize` manipulations can be applied

| Parameter | Values | Default | Description |
| --------- | ------- | ---------- | -------------------------------------- |
| width | `Number` | | Width to crop to, px |
| height | `Number` | | Height to crop to, px |
| quality | `0`-`100`| `75`| Image quality, % |
| maintain_ratio | `y` / `n` | `y`| Keep image ratio (yes/no) |
| master_dim | `auto`/`width`/`height` | `auto`| Master dimension when only width of height is specified |

### `:resize_crop`

{news_image:resize_crop resize:width="300" crop:width="100"}
Expand Down