VoteIT

  • Nyheter
  • Dokumentation
  • Fallstudier
  • Gemenskap
  • GitHub
Star

What's on this Page

    • Image Filters
      • Brightness
      • ColorBalance
      • Colorize
      • Contrast
      • Gamma
      • GaussianBlur
      • Grayscale
      • Hue
      • Invert
      • Pixelate
      • Saturation
      • Sepia
      • Sigmoid
      • UnsharpMask
    • Other Functions
      • Filter
      • ImageConfig
FUNCTIONS

Bildfunktioner

The images namespace provides a list of filters and other image related functions.

Image Filters

See images.Filter for how to apply these filters to an image.

Brightness

Syntax

images.Brightness PERCENTAGE

Brightness creates a filter that changes the brightness of an image. The percentage parameter must be in range (-100, 100).

ColorBalance

Syntax

images.ColorBalance PERCENTAGERED PERCENTAGEGREEN PERCENTAGEBLUE

ColorBalance creates a filter that changes the color balance of an image. The percentage parameters for each color channel (red, green, blue) must be in range (-100, 500).

Colorize

Syntax

images.Colorize HUE SATURATION PERCENTAGE

Colorize creates a filter that produces a colorized version of an image. The hue parameter is the angle on the color wheel, typically in range (0, 360). The saturation parameter must be in range (0, 100). The percentage parameter specifies the strength of the effect, it must be in range (0, 100).

Contrast

Syntax

images.Contrast PERCENTAGE

Contrast creates a filter that changes the contrast of an image. The percentage parameter must be in range (-100, 100).

Gamma

Syntax

images.Gamma GAMMA

Gamma creates a filter that performs a gamma correction on an image. The gamma parameter must be positive. Gamma = 1 gives the original image. Gamma less than 1 darkens the image and gamma greater than 1 lightens it.

GaussianBlur

Syntax

images.GaussianBlur SIGMA

GaussianBlur creates a filter that applies a gaussian blur to an image.

Grayscale

Syntax

images.Grayscale

Grayscale creates a filter that produces a grayscale version of an image.

Hue

Syntax

images.Hue SHIFT

Hue creates a filter that rotates the hue of an image. The hue angle shift is typically in range -180 to 180.

Invert

Syntax

images.Invert

Invert creates a filter that negates the colors of an image.

Pixelate

Syntax

images.Pixelate SIZE

Pixelate creates a filter that applies a pixelation effect to an image.

Saturation

Syntax

images.Saturation PERCENTAGE

Saturation creates a filter that changes the saturation of an image.

Sepia

Syntax

images.Sepia PERCENTAGE

Sepia creates a filter that produces a sepia-toned version of an image.

Sigmoid

Syntax

images.Sigmoid MIDPOINT FACTOR

Sigmoid creates a filter that changes the contrast of an image using a sigmoidal function and returns the adjusted image. It’s a non-linear contrast change useful for photo adjustments as it preserves highlight and shadow detail.

UnsharpMask

Syntax

images.UnsharpMask SIGMA AMOUNT THRESHOLD

UnsharpMask creates a filter that sharpens an image. The sigma parameter is used in a gaussian function and affects the radius of effect. Sigma must be positive. Sharpen radius roughly equals 3 * sigma. 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.

Other Functions

Filter

Syntax

IMAGE | images.Filter FILTERS…

Can be used to apply a set of filters to an image:

{{ $img := $img | images.Filter (images.GaussianBlur 6) (images.Pixelate 8) }}

Also see the Filter Method.

ImageConfig

Parses the image and returns the height, width, and color model.

Syntax

images.ImageConfig PATH

{{ with (imageConfig "favicon.ico") }}
favicon.ico: {{.Width}} x {{.Height}}
{{ end }}
  • Om
    • Om VoteIT
    • VoteIT och GDPR
    • Vad är VoteIT
    • VoteIT Funktioner
    • Fördelar med VoteIT
    • Licens
  • Kom Igång
    • Överblick
    • Snabbstart
    • Installera VoteIT
    • Grundläggande Användning
    • Konfiguration
  • Administration
    • Administration
  • Innehåll
  • Mallar
    • Mallar
  • Funktioner
    • Funktioners Snabbreferens
    • Debatt
    • Experiment - Verktyg
    • Export / Import
    • Grupper
    • Importera Deltagare
    • Instant-Runoff Vote Polls
    • Internationalisering
    • Introduktion
    • Liquid Democracy
    • Live Widget
    • Mixade Möten
    • Motioner
    • Omröstning Dutt
    • Omröstning Kombinerad Enkel
    • Omröstning Schulze
    • Omröstning STV
    • Omröstning STVer
    • Online Status
    • Personliga Anteckningar
    • Plugin - Velruse Autentisering
    • Projektorvy
    • QR-koder
    • RSS Feed
    • Röstgrupper
    • Röstlängd
    • Skriv ut mötesstruktur
    • Snabbstarta
    • Statistik
  • Variabler
  • Användarguider
  • Problemlösning
  • Verktyg
  • Drift och installation
  • Bidra
    • Utveckling
    • Dokumentation
  • Underhåll
  • content-management
    • VoteIT Open Source
  • contribute
    • Bidra till VoteIT
    • Teman
    • Översättning
  • functions
    • Bildfunktioner
  • templates
    • Bas och Block
  • tools
    • Utvecklarverktyg
    • Migrationer
    • Startkit
    • Frontend
    • Redigerare
    • Sök
    • Andra projekt
  • troubleshooting
    • Drift och Installation
    • Troubleshoot
    • FAQ
    • Installation
  • variables
    • Variabler
    • Taxonomi Variabler
“Bildfunktioner” was last updated: October 30, 2019: Fixar i ordning nyheter och lokalisering av Docs guide manual. (94a7d4c)
Improve this page
By the VoteIT Authors
VoteIT Logo
  • File an Issue
  • Get Help
  • Discuss Source Code
  • @VoteIT
  • @robin_betahaus
  • @andershultman
 
 

VoteIT Sponsors

Logo for VoteIT
Logo for Betahaus
Logo for Datatrion AB
 

The VoteIT logos are copyright © VoteIT 2011–2019.

  • Nyheter
  • Dokumentation
  • Fallstudier
  • Gemenskap
  • GitHub
  • Om
  • Kom Igång
  • Administration
  • Innehåll
  • Mallar
  • Funktioner
  • Variabler
  • Användarguider
  • Problemlösning
  • Verktyg
  • Drift och installation
  • Bidra
  • Underhåll
  • content-management
  • contribute
  • functions
  • templates
  • tools
  • troubleshooting
  • variables