files

package
v0.0.0-...-537d0aa Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSliceToGolangImage

func ByteSliceToGolangImage(data []byte) (image.Image, error)

Convert image format of []byte to image.Image

func GetMetaFromImageByteSlice

func GetMetaFromImageByteSlice(image []byte) (width int, height int, fileExtension string, fileSize int, err error)

Get meta data from image format of []byte

func GetSizeOfByteSlice

func GetSizeOfByteSlice(data interface{}) (int, error)

Get file size in bytes of any file type by using Go file descriptor as parameter type

func GolangImageToByteSlice

func GolangImageToByteSlice(img image.Image, format string) ([]byte, error)

Convert image format of image.Image to []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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