Documentation ¶
Index ¶
- Variables
- func Convert(from string) (string, string, error)
- type ImageData
- func FindLargerImageFromBytes(image []byte, outputFile string) (*ImageData, error)
- func FindLargerImageFromFile(filename string) (*ImageData, error)
- func GetImageConfigFromFile(filename string) (*ImageData, error)
- func GetLargerImageFromBytes(image []byte, outputDir string) (*ImageData, error)
- func GetLargerImageFromFile(filename, outputDir string) (*ImageData, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoLargerAvailable = errors.New("there is no large image") ErrCaptcha = errors.New("response was captcha page") ErrNoResults = errors.New("no images found") )
View Source
var NoMatchesError = errors.New("Looks like there aren’t any matches for your search")
View Source
var OtherSizesNotAvailableError = errors.New("No other sizes of this image found.")
Functions ¶
Types ¶
type ImageData ¶
type ImageData struct { URL string Bytes []byte Extension string image.Config Area int FileSize int64 LocalPath string }
ImageData represents all the information about an image in the app
func FindLargerImageFromBytes ¶
FindLargerImageFromBytes takes a bytes and returns information about a larger image that was found. It does NOT download the image.
func FindLargerImageFromFile ¶
FindLargerImageFromFile takes a file and returns information about a larger image that was found. It does NOT download the image.
func GetImageConfigFromFile ¶
GetImageConfigFromFile returns ImageData for the given image
func GetLargerImageFromBytes ¶
GetLargerImageFromBytes is just like FindLargerImageFromBytes except it also downloads the file.
func GetLargerImageFromFile ¶
GetLargerImageFromFile is just like FindLargerImageFromFile except it also downloads the file.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.