
If you change image processing methods or options, or if you rename or remove images, the resources directory will contain unused images. If you include this directory in source control, Hugo will not have to regenerate the images in a CI/CD workflow (e.g., GitHub Pages, GitLab Pages, Netlify, etc.). Hugo caches processed images in the resources directory. Image Processing Performance Consideration You can set the anchor point manually, but in most cases the Smart option will make a good choice.Įxamples using the sunset image from above: Select Image Flexible plans just for you Subscription The flexibility of paying month to month and save 20. Smart Cropping of Imagesīy default, Hugo uses the Smartcrop library when cropping images with the Crop or Fill methods. Resize Images Online - Resize JPG, BMP, GIF, PNG images Resize an Image Drop your images here or browse. To improve performance and decrease cache size, if you set neither excludeFields nor includeFields, Hugo excludes the following tags: ColorSpace, Contrast, Exif, Exposure, Flash, GPS, JPEG, Metering, Resolution, Saturation, Sensing, Sharp, and WhiteBalance.

The Fit, Fill, and Crop methods require both width and height. With the Resize method you must specify width, height, or both.

The order of the options within the list is irrelevant. The Resize, Fit, Fill, and Crop methods accept a space-separated, case-insensitive list of options. You may include or exclude specific tags from this collection in the site configuration. Format with the time.Format function.Lat GPS latitude in degrees.Long GPS longitude in degrees.Tags A collection of the available Exif tags for this image.
