albumart

package
v0.0.0-...-48b9318 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(a *AlbumArt) (string, error)

uses optimized embedded artwork OR optimized artwork within file path

Types

type AlbumArt

type AlbumArt struct {
	TempDir       string
	Fullpath      string
	WithParentDir bool
	Source        string
	Ffmpeg        interface {
		OptimizeAlbumArt(s, d string) (string, error)
		Exec(args ...string) (string, error)
	}
	Ffprobe interface {
		EmbeddedImage() (int, int, bool)
		GetData(filePath string) (*ffprobe.Data, error)
	}
	ImgDecode func(r io.Reader) (image.Config, string, error)
}

Jump to

Keyboard shortcuts

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