title | linkTitle | description | nav_weight | nav_icon | date | categories | tags | authors | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Cropping Images |
Cropping |
Crop an image to match the given dimensions without resizing. |
3 |
|
2023-03-25 23:13:36 +0800 |
|
|
|
You must provide both width and height. Use the anchor1 option to change the crop box anchor point.
![Crop Image](featured.jpeg?crop=[width]x[height],[anchor])
[width]x[height]
: required.[anchor]
: optional.
{{< page-resource-content "data/examples" >}}
Footnotes
-
The anchor determines the placement of the crop box. You may specify
TopLeft
,Top
,TopRight
,Left
,Center
,Right
,BottomLeft
,Bottom
,BottomRight
, orSmart
. The default value isSmart
. ↩