imgstr

package module
v0.0.0-...-be98a2f Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 6 Imported by: 0

README

go-imgstr

Package imgstr provides to serializing an image, that seamlessly works with Go's built-in "image", "image/color", and "image/draw" packages.

The serialized image is in “IMAGE:” format.

The usefulness of this serialized format is, if you just output it on the Go Playground — https://play.golang.org/ — then it will display it as an image (rather than text).

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-imgstr

GoDoc

Documentation

Overview

Package imgstr provides to serializing an image, that seamlessly works with Go's built-in "image", "image/color", and "image/draw" packages.

The serialized image is in “IMAGE:<base64-encoded-png>” format.

The usefulness of this serialized format is, if you just output it on the

Go Playground — https://play.golang.org/ — then it will display it as an image (rather than text).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageString

func ImageString(img image.Image) string

ImageString returns frame serialized image in “IMAGE:<base64-encoded-png>” format.

The usefulness of this serialized format is, if you just output that on the Go Playground — https://play.golang.org/ — then it will display it as an image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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