b64image

package
v0.0.0-...-fad53ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package b64image provides helper functions for manipulating base64 encoded PNG or JPEG images

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colorize

func Colorize(original string, clr color.Color) string

Colorize adds a color to the transparent background of the original image and returns the result. If color is the zero value, then a random color is applied.

The original must be a base64 encoded image, either JPEG or PNG. The result is a base64 encoded PNG image.

func ColorsEqual

func ColorsEqual(clr1, clr2 color.Color) bool

ColorsEqual returns true if both colors are the same

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL