mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 10:18:40 +00:00
Add Smart to Anchor section
This commit is contained in:
1 parent
49e7964096
commit
bc1b02bc5c
1 file changed
+4
-1
@@ -180,7 +180,10 @@ Rotates an image by the given angle counter-clockwise. The rotation will be perf
|
|||||||
### Anchor
|
### Anchor
|
||||||
|
|
||||||
Only relevant for the `Fill` method. This is useful for thumbnail generation where the main motive is located in, say, the left corner.
|
Only relevant for the `Fill` method. This is useful for thumbnail generation where the main motive is located in, say, the left corner.
|
||||||
Valid are `Center`, `TopLeft`, `Top`, `TopRight`, `Left`, `Right`, `BottomLeft`, `Bottom`, `BottomRight`.
|
|
||||||
|
Valid values are `Smart`, `Center`, `TopLeft`, `Top`, `TopRight`, `Left`, `Right`, `BottomLeft`, `Bottom`, `BottomRight`.
|
||||||
|
|
||||||
|
Default value is `Smart`, which uses [Smartcrop](https://github.com/muesli/smartcrop) to determine the best crop.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
{{ $image.Fill "300x200 BottomLeft" }}
|
{{ $image.Fill "300x200 BottomLeft" }}
|
||||||
|
|||||||
Reference in new issue
Block a user