strategy

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConversionGroups []ConversionGroup

ConversionGroups contains all groups of formats that can be converted between

Functions

func KnownExtension

func KnownExtension(extension string) bool

KnownExtension will check the conversion groups to see if an extension is known to qc

func VerifyConversion

func VerifyConversion(inputFormat format.Info, outputFormat format.Info) (bool, error)

VerifyConversion ensures input format can be converted to output format

Types

type ConversionGroup

type ConversionGroup struct {
	FormatType string
	Formats    []format.Info
	Check      func() bool // Check for any dependencies before trying to use them
	Setup      func() bool // Setup things like libvips
}

ConversionGroup represents a group of inter-convertible formats

func GetFormat

func GetFormat(extension string) (format.Info, ConversionGroup, error)

GetFormat will return format info from extension string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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