Documentation ¶
Index ¶
- Constants
- func FileDimensions(imagePath string) (image.Config, error)
- func FixRotation(src string) error
- func GIFToImage(file multipart.File) (image.Image, error)
- func ImageDimensions(file multipart.File) (image.Config, error)
- func ImageToJPGFile(img image.Image, output string) error
- func JPGToFile(file multipart.File, output string) error
- func PNGToImage(file multipart.File) (image.Image, error)
Constants ¶
View Source
const (
// JPGQuality is the image quality.
JPGQuality = 95
)
Variables ¶
This section is empty.
Functions ¶
func FileDimensions ¶
FileDimensions returns the image dimensions of the file
func FixRotation ¶
FixRotation rotates the image in place to correct from cell phones
func GIFToImage ¶
GIFToImage converts GIF from POST request to image resource
func ImageDimensions ¶
ImageDimensions returns the image dimensions of the image
func ImageToJPGFile ¶
ImageToJPGFile converts image resource to file on disk
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.