imageupsizer

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 21 Imported by: 0

README

Google Image Upsizer

imageupsizer Go Report Card Go Reference

Extract the best images from Google Image Search. Divergent fork of yms2772/google_image_upsizer.

How to use

go install github.com/kmulvey/imageupsizer
imageupsizer -path="original/test.jpg" -output="result/"

Required options

Name Type Description
-input string Path to the image file or directory you want to upscale
-output string Directory path to save results

Result

test test2

Documentation

Index

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")
)

Functions

This section is empty.

Types

type ImageData

type ImageData struct {
	URL       string
	Bytes     []byte
	Extension string
	image.Config
	Area      int
	FileSize  int64
	LocalPath string
}

func FindLargerImageFromBytes

func FindLargerImageFromBytes(image []byte, outputFile string) (*ImageData, error)

func FindLargerImageFromFile

func FindLargerImageFromFile(filename string) (*ImageData, error)

func GetImageConfigFromFile

func GetImageConfigFromFile(filename string) (*ImageData, error)

func GetLargerImageFromBytes

func GetLargerImageFromBytes(image []byte, outputDir string) (*ImageData, error)

func GetLargerImageFromFile

func GetLargerImageFromFile(filename, outputDir string) (*ImageData, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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