utils

package
v0.0.0-...-a2ed315 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(directory string) string

EnsureDir ensures that the specified directory exists

func GetExePath

func GetExePath() string

GetExePath returns the path of the executable file or Exit(1) if it cannot read it.

func HeicToJPEG

func HeicToJPEG(heicFile, jpegFile string) error

HeicToJPEG converts an HEIC image to a JPEG image. It requires ImageMagick in the PATH (convert for Unix platforms, magick.exe for Windows).

func MD5

func MD5(path string) (string, error)

MD5 computes the MD5 hash of a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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