photo

package
v0.0.0-...-ecdd364 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// JPGQuality is the image quality.
	JPGQuality = 95
)

Variables

This section is empty.

Functions

func FileDimensions

func FileDimensions(imagePath string) (image.Config, error)

FileDimensions returns the image dimensions of the file

func FixRotation

func FixRotation(src string) error

FixRotation rotates the image in place to correct from cell phones

func GIFToImage

func GIFToImage(file multipart.File) (image.Image, error)

GIFToImage converts GIF from POST request to image resource

func ImageDimensions

func ImageDimensions(file multipart.File) (image.Config, error)

ImageDimensions returns the image dimensions of the image

func ImageToJPGFile

func ImageToJPGFile(img image.Image, output string) error

ImageToJPGFile converts image resource to file on disk

func JPGToFile

func JPGToFile(file multipart.File, output string) error

JPGToFile converts JPG from POST request to file on disk

func PNGToImage

func PNGToImage(file multipart.File) (image.Image, error)

PNGToImage converts PNG from POST request to image resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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