<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Image functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/</link><description>Recent content in Image functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/images/index.xml" rel="self" type="application/rss+xml"/><item><title>images.AutoOrient</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/autoorient/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/autoorient/</guid><description>New in v0.121.2 Usage Create the filter:
{{ $filter := images.AutoOrient }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with .</description></item><item><title>images.Brightness</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/brightness/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/brightness/</guid><description>The percentage must be in the range [-100, 100] where 0 has no effect. A value of -100 produces a solid black image, and a value of 100 produces a solid white image.
Usage Create the image filter:
{{ $filter := images.Brightness 12 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .</description></item><item><title>images.ColorBalance</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/colorbalance/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/colorbalance/</guid><description>The percentage for each channel (red, green, blue) must be in the range [-100, 500].
Usage Create the filter:
{{ $filter := images.ColorBalance -10 10 50 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:</description></item><item><title>images.Colorize</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/colorize/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/colorize/</guid><description>The hue is the angle on the color wheel, typically in the range [0, 360].
The saturation must be in the range [0, 100].
The percentage specifies the strength of the effect, and must be in the range [0, 100].
Usage Create the filter:
{{ $filter := images.Colorize 180 50 20 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .</description></item><item><title>images.Config</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/config/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/config/</guid><description>See image processing for an overview of Hugo&amp;rsquo;s image pipeline.
{{ $ic := images.Config &amp;#34;/static/images/a.jpg&amp;#34; }} {{ $ic.Width }} → 600 (int) {{ $ic.Height }} → 400 (int) Supported image formats include GIF, JPEG, PNG, TIFF, and WebP.
This is a legacy function, superseded by the Width and Height methods for global, page, and remote resources. See the image processing section for details.</description></item><item><title>images.Contrast</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/contrast/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/contrast/</guid><description>The percentage must be in the range [-100, 100] where 0 has no effect. A value of -100 produces a solid grey image, and a value of 100 produces an over-contrasted image.
Usage Create the filter:
{{ $filter := images.Contrast -20 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:</description></item><item><title>images.Filter</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/filter/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/filter/</guid><description>Apply one or more image filters to the given image.
To apply a single filter:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with images.Filter images.Grayscale . }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} To apply two or more filters, executing from left to right:
{{ $filters := slice images.Grayscale (images.GaussianBlur 8) }} {{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with images.Filter $filters .</description></item><item><title>images.Gamma</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/gamma/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/gamma/</guid><description>The gamma value must be positive. A value greater than 1 lightens the image, while a value less than 1 darkens the image. The filter has no effect when the gamma value is 1.
Usage Create the filter:
{{ $filter := images.Gamma 1.667 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .</description></item><item><title>images.GaussianBlur</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/gaussianblur/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/gaussianblur/</guid><description>The sigma value must be positive, and indicates how much the image will be blurred. The blur-affected radius is approximately 3 times the sigma value.
Usage Create the filter:
{{ $filter := images.GaussianBlur 5 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:</description></item><item><title>images.Grayscale</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/grayscale/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/grayscale/</guid><description>Usage Create the filter:
{{ $filter := images.Grayscale }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with .Filter $filter }} &amp;lt;img src=&amp;#34;{{ .</description></item><item><title>images.Hue</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/hue/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/hue/</guid><description>The hue angle shift is typically in the range [-180, 180] where 0 has no effect.
Usage Create the filter:
{{ $filter := images.Hue -15 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:</description></item><item><title>images.Invert</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/invert/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/invert/</guid><description>Usage Create the filter:
{{ $filter := images.Invert }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with .Filter $filter }} &amp;lt;img src=&amp;#34;{{ .</description></item><item><title>images.Opacity</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/opacity/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/opacity/</guid><description>New in v0.119.0 The opacity value must be in the range [0, 1]. A value of 0 produces a transparent image, and a value of 1 produces an opaque image (no transparency).
Usage Create the filter:
{{ $filter := images.Opacity 0.65 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .</description></item><item><title>images.Overlay</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/overlay/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/overlay/</guid><description>Usage Capture the overlay image as a resource:
{{ $overlay := &amp;#34;&amp;#34; }} {{ $path := &amp;#34;images/logo.png&amp;#34; }} {{ with resources.Get $path }} {{ $overlay = . }} {{ else }} {{ errorf &amp;#34;Unable to get resource %q&amp;#34; $path }} {{ end }} The overlay image can be a global resource, a page resource, or a remote resource.
Create the filter:
{{ $filter := images.Overlay $overlay 20 20 }} Apply the filter using the images.</description></item><item><title>images.Padding</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/padding/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/padding/</guid><description>New in v0.120.0 The last argument is the canvas color, expressed as an RGB or RGBA hexadecimal color. The default value is ffffffff (opaque white). The preceding arguments are the padding values, in pixels, using the CSS shorthand property syntax. Negative padding values will crop the image.
Usage Create the filter:
{{ $filter := images.Padding 20 40 &amp;#34;#976941&amp;#34; }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.</description></item><item><title>images.Pixelate</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/pixelate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/pixelate/</guid><description>Usage Create the filter:
{{ $filter := images.Pixelate 4 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with .Filter $filter }} &amp;lt;img src=&amp;#34;{{ .</description></item><item><title>images.Process</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/process/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/process/</guid><description>New in v0.119.0 This filter has the same options as the Process method on a Resource object, but using it as a filter may be more effective if you need to apply multiple filters to an image.
The process specification is a space-delimited, case-insensitive list of one or more of the following in any sequence:
action Specify zero or one of crop, fill, fit, or resize. If you specify an action you must also provide dimensions.</description></item><item><title>images.Saturation</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/saturation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/saturation/</guid><description>The percentage must be in the range [-100, 500] where 0 has no effect.
Usage Create the filter:
{{ $filter := images.Saturation 65 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:</description></item><item><title>images.Sepia</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/sepia/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/sepia/</guid><description>The percentage must be in the range [0, 100] where 0 has no effect.
Usage Create the filter:
{{ $filter := images.Sepia 75 }} Apply the filter using the images.Filter function:
{{ with resources.Get &amp;#34;images/original.jpg&amp;#34; }} {{ with . | images.Filter $filter }} &amp;lt;img src=&amp;#34;{{ .RelPermalink }}&amp;#34; width=&amp;#34;{{ .Width }}&amp;#34; height=&amp;#34;{{ .Height }}&amp;#34; alt=&amp;#34;&amp;#34;&amp;gt; {{ end }} {{ end }} You can also apply the filter using the Filter method on a Resource object:</description></item><item><title>images.Sigmoid</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/sigmoid/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/sigmoid/</guid><description>This is a non-linear contrast change useful for photo adjustments; it preserves highlight and shadow detail.
The midpoint is the midpoint of contrast. It must be in the range [0, 1], typically 0.5.
The factor indicates how much to increase or decrease the contrast, typically in the range [-10, 10] where 0 has no effect. A positive value increases contrast, while a negative value decrease contrast.
Usage Create the filter:</description></item><item><title>images.Text</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/text/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/text/</guid><description>Options Although none of the options are required, at a minimum you will want to set the size to be some reasonable percentage of the image height.
color (string) The font color, either a 3-digit or 6-digit hexadecimal color code. Default is #ffffff (white). font (resource.Resource) The font can be a global resource, a page resource, or a remote resource. Default is Go Regular, a proportional sans-serif TrueType font. linespacing (int) The number of pixels between each line.</description></item><item><title>images.UnsharpMask</title><link>https://v0-122-0--gohugoio.netlify.app/functions/images/unsharpmask/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/images/unsharpmask/</guid><description>The sigma parameter is used in a gaussian function and affects the radius of effect. Sigma must be positive. The sharpen radius is approximately 3 times the sigma value.
The amount parameter controls how much darker and how much lighter the edge borders become. Typically between 0.5 and 1.5.
The threshold parameter controls the minimum brightness change that will be sharpened. Typically between 0 and 0.05.
Usage Create the filter:</description></item></channel></rss>