Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 806 Bytes

File metadata and controls

34 lines (27 loc) · 806 Bytes
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
vendor name
bs
crop
2023-03-25 23:13:36 +0800
Docs
Markdown
Crop
HugoMods

Syntax

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.

Examples

{{< page-resource-content "data/examples" >}}

Footnotes

  1. The anchor determines the placement of the crop box. You may specify TopLeft, Top, TopRight, Left, Center, Right, BottomLeft, Bottom, BottomRight, or Smart. The default value is Smart.