Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GIFMatch matches on gif files GIFMatch = &ImageMatch{[]string{"*.gif", "*.GIF"}} // JPGMatch matches jpegs JPGMatch = &ImageMatch{[]string{"*.jpg", "*.jpeg", "*.JPG", "*.JPEG"}} // PNGMatch matches png files PNGMatch = &ImageMatch{[]string{"*.png", "*.PNG"}} // TIFFMatch matches tiff files TIFFMatch = &ImageMatch{[]string{"*.cr2", "*.CR2", "*.tiff", "*.TIFF"}} )
Functions ¶
This section is empty.
Types ¶
type FingerPrint ¶
FingerPrint is a fingerprint and the files associated with it
type FingerPrintCollection ¶
type FingerPrintCollection struct {
FingerPrints []FingerPrint
}
FingerPrintCollection is a collection of fingerprints
type FingerPrinter ¶
FingerPrinter specifies a value that can generate a practically-unique fingerprint for an image
type Image ¶
Image represents an image file
func (*Image) FingerPrint ¶
FingerPrint returns a unique fingerprint for an image - well... for practical purposes
func (*Image) HeightByteSlice ¶
HeightByteSlice returns the size of the image in a byte array
func (*Image) SizeByteSlice ¶
SizeByteSlice returns the size of the image in a byte array
func (*Image) WidthByteSlice ¶
WidthByteSlice returns the size of the image in a byte array
type ImageMatch ¶
type ImageMatch struct {
// contains filtered or unexported fields
}
ImageMatch matches typical image files
func NewImageMatch ¶
func NewImageMatch(patterns []string) *ImageMatch
NewImageMatch creates a new ImageMatch
func (*ImageMatch) Patterns ¶
func (i *ImageMatch) Patterns() []string
Patterns returns the patters for this Matcher
Click to show internal directories.
Click to hide internal directories.