Skip to content

Commit

Permalink
Update documentation to add AVIF
Browse files Browse the repository at this point in the history
  • Loading branch information
BezPowell committed Feb 10, 2021
1 parent fe5f499 commit 2fff0c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/content/documentation/content/image-processing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ resize_image(path, width, height, op, format, quality)
- `"auto"`
- `"jpg"`
- `"png"`
- `"avif"`

The default is `"auto"`, this means that the format is chosen based on input image format.
JPEG is chosen for JPEGs and other lossy formats, and PNG is chosen for PNGs and other lossless formats.
- `quality` (_optional_): JPEG quality of the resized image, in percent. Only used when encoding JPEGs; default value is `75`.
- `quality` (_optional_): Quality of the resized image, in percent. Only used when encoding JPEGs or AVIFs; default value is `75`.

### Image processing and return value

Expand Down

0 comments on commit 2fff0c2

Please sign in to comment.