hugo/docs/content/en/news/0.36-relnotes/index.md

3.0 KiB


date: 2018-02-05 title: "Hugo 0.36: Smart Image Cropping!" description: "Hugo 0.36 announces smart image cropping and some important bug fixes." categories: ["Releases"]

Hugo 0.36 announces smart cropping of images, using the library created by muesli. We will work with him to improve this even more in the future, but this is now the default used when cropping images in Hugo.

Go here for a list of examples.

This release represents 7 contributions by 3 contributors to the main Hugo code base.

Many have also been busy writing and fixing the documentation in hugoDocs, which has received 9 contributions by 4 contributors. A special thanks to @bep, @Jibec, @Nick-Rivera, and @kaushalmodi for their work on the documentation site.

Hugo now has:

Notes

Hugo now defaults to smart crop when cropping images, if you don't specify it when calling .Fill.

You can get the old default by adding this:

{{< code-toggle file="config" >}} [imaging] anchor = "center" {{< /code-toggle >}}

Also, we have removed the superflous anchor name from the processed filenames that does not use this anchor, so it can be wise to run hugo --gc once to remove unused images.

Enhancements

Fixes