processing

package
v0.0.0-...-972e18c Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeImage

func DecodeImage(encodedStr string) (image.Image, error)

DecodeImage decodes a base64 encoded image string

func GenerateUniqueFilename

func GenerateUniqueFilename() string

GenerateUniqueFilename generates a unique filename based on the current timestamp

func SaveImage

func SaveImage(filename string, img image.Image) error

SaveImage saves an image to a file.

func ServeImage

func ServeImage(w http.ResponseWriter, r *http.Request, images map[string]string)

ServeImage serves the saved image for preview in a web server

Types

This section is empty.

Jump to

Keyboard shortcuts

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