Text overlay over image

Is this limited to watermarking an image? Or can it be used, for example, to place site title over image then style it by setting a background colour?

Well, you can certainly do something like this:

{{ $img := (resources.Get "/images/imagewithtransparentbackground.png").Resize "300x #ccc" }}
{{ $img = $img.Filter (images.Text "Hugo rocks!" (dict
    "color" "#ffffff"
    "size" 60
    "linespacing" 2
    "x" 10
    "y" 20
))}}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.