extimg

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package extimg extend image

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(img string) (string, []byte, error)

DecodeBase64 decode base64 image which format is like: data:image/png;base64,xxxxxxxxxxxxxx

func EncodeToBase64

func EncodeToBase64(ext string, value []byte) string

EncodeToBase64 image encode to base64, format like: data:image/png;base64,xxxxxxxxxxxxxx ext: png,jpg... or image/png,image/jpg value: image raw value

func GetExts

func GetExts() []string

GetExts get image ext slice

func GetType

func GetType(filename string) (string, error)

GetType returns the type of image (like image/jpeg)

Types

This section is empty.

Jump to

Keyboard shortcuts

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