Skip to content
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
20 changes: 20 additions & 0 deletions content/collections/tags/glide.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,26 @@ _Note: All Glide generated images are cropped at their focal point, unless you d
'auto_crop' => true,
```


### focus_css
The focal point of the asset, in a format suitable for the background-position CSS property, if one has been set.

::tabs

::tab antlers
```antlers
{{ focus_css }}
```
::tab blade
```blade
{{ $focus_css }}
```
::

```html
50% 30%
```

## Unsupported formats

Glide will resize whatever images it supports, like jpgs or pngs. If you pass an unsupported type to Glide, like an svg, it'll just return the unmodified URL.
Expand Down