Skip to content

fix: typo in image resize docs #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion content/guides/5.files/4.transform.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Directus allows you to transform assets using URL query parameters. You can pass
| `quality` | The overall image quality (1 to 100), defaults to [the Sharp API's default for the given format](https://sharp.pixelplumbing.com/api-output/#jpeg) if omitted. The higher the value, the larger the image size. The lower the value, the more compression artifacts are in the image. |
| `withoutEnlargement` | Disable automatically upscaling the image (true) |
| `format` | What file format to return the image in. One of auto, jpg, png, webp, tiff auto default if omitted, Will try to format it in webp or avif if the browser supports it, otherwise it will fallback to jpg. |
| `fit` | How the image should fit into the provided dimensions, values including: <ul><li>**`cover` (default if omitted)**: try to fit the image into the dimensions while preserving the aspect ratio</li><li>**`contain`**: contain within the dimensions while using "letterboxing" to fill the rest</li><li>**`inside`**: Resize to be as large as possible within the dimensions</li> <li>**`outside`**: sesize to be as small as possible within or beyond the dimensions</li></ul> |
| `fit` | How the image should fit into the provided dimensions, values including: <ul><li>**`cover` (default if omitted)**: try to fit the image into the dimensions while preserving the aspect ratio</li><li>**`contain`**: contain within the dimensions while using "letterboxing" to fill the rest</li><li>**`inside`**: Resize to be as large as possible within the dimensions</li> <li>**`outside`**: Resize to be as small as possible within or beyond the dimensions</li></ul> |

::callout{icon="material-symbols:info-outline"}
**Focal Points**
Expand Down